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#.