Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Display Modes
  #1 (permalink)  
Old September 13th, 2008, 01:55 AM
Authorized User
 
Join Date: Apr 2008
Location: , , .
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default Generating Textboxes with the GridView Template

Hello,
I am struggling a lot regarding binding textboxes in GridView based on the Input given by the user in ASP.NET2.0 and MS SQL 2000 Server. Following are the scenerio of my problem:

I have a page1.aspx page where the number of row should be specified by the user. Based on it, in page2.aspx I have to dynamically generate the GridView Template with the RowNo. That is, I have to use the for loop till RowNo.
For Example, I have RowNo=4, and have to generate 4 rows of gridview template. First Column of Template should be questcode (ie WT001,WT002,WT003,WT004), and rest of the column should have Textboxes (This textboxes are for user input).
So, my question is :
1) How to bind the GridView Template dynamically and place the textboxes also dynamically(or how can I place textboxes)inside the column.

2) How can I submit the user input to the database table.

I have seen the code source code in C# and i tried to do it in VB code but couldn't do it.. So, your help is appreciable and valuable.

I want the code with screen shot. Please the code behind in VB not in C#.

Thanks


  #2 (permalink)  
Old September 13th, 2008, 02:54 AM
Imar's Avatar
Wrox Author
Points: 71,804, Level: 100
Points: 71,804, Level: 100 Points: 71,804, Level: 100 Points: 71,804, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,052
Thanks: 80
Thanked 1,581 Times in 1,558 Posts
Default

 
Quote:
quote:I want the code with screen shot. Please the code behind in VB not in C#.
Excuse me? We're not your employees, we're here to help you....

If you have the code in C#, I suggest you use an on-line converter like this one: http://converter.telerik.com/ or you can try to convert it yourself and then come back here with specific questions.

You posted this question in the Pro forum. Usually, people expect professionals to be able to their own work (quite possible with the help of others, like the people on this forum), instead of relying on others to do it.

So, I am more than happy to help, but I won't do your work for you.

Cheers,

Imar

---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of Beginning ASP.NET 3.5 : in C# and VB, ASP.NET 2.0 Instant Results and Dreamweaver MX 2004
Want to be my colleague? Then check out this post.
  #3 (permalink)  
Old September 13th, 2008, 07:35 AM
Authorized User
 
Join Date: Apr 2008
Location: , , .
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello Imar,
Thank you for your comments. I really appreciated your help. Your help is very valuable.
I didn't mean you are all my employees. Any way, Is my question wrong? had I not specified properly.
Sorry for the interruption.

I don't remember posting in Pro Forum. Is that me?

Thanks


  #4 (permalink)  
Old September 13th, 2008, 07:48 AM
Imar's Avatar
Wrox Author
Points: 71,804, Level: 100
Points: 71,804, Level: 100 Points: 71,804, Level: 100 Points: 71,804, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,052
Thanks: 80
Thanked 1,581 Times in 1,558 Posts
Default

Take a look at the top of this page. You see this:

P2P Forum > ASP.NET and ASP > ASP.NET 2.0 Professional > Generating Textboxes with the GridView Template

So, yes, you posted this in the Professional forum.
Quote:
quote:Is my question wrong?
IMO: yes, it is. You say stuff like "I want the code with screen shot." as in "I don't want to do it myself; I want you to do it and I want it now" which obviously no-one is going to fall for. Your post doesn't show that you've already put some effort in solving the problem on your own.

So, please read my previous reply and try a post again: show us what you've already done; try to convert the code with an on-line converter and then come back here with specific questions. Then we'll be more than happy to help.

Cheers,

Imar


---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of Beginning ASP.NET 3.5 : in C# and VB, ASP.NET 2.0 Instant Results and Dreamweaver MX 2004
Want to be my colleague? Then check out this post.
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Databinding DropDownList in gridview template hughworm BOOK: Professional ASP.NET 3.5 : in C# and VB ISBN: 978-0-470-18757-9 0 October 15th, 2008 11:16 AM
Data Bind Template Controls in Gridview wirerider ASP.NET 2.0 Basics 5 February 4th, 2007 06:20 AM
Need to get value of gridview template columns for kmh030 ASP.NET 2.0 Professional 1 January 6th, 2007 10:10 PM
Dynamically Generating Textboxes Maxood PHP How-To 6 March 9th, 2006 08:14 AM
"Indent" field in gridview template. wirerider ASP.NET 2.0 Basics 0 February 28th, 2006 11:15 PM



All times are GMT -4. The time now is 07:05 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.