Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 13th, 2008, 01:55 AM
Authorized User
 
Join Date: Apr 2008
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


 
Old September 13th, 2008, 02:54 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 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.
 
Old September 13th, 2008, 07:35 AM
Authorized User
 
Join Date: Apr 2008
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


 
Old September 13th, 2008, 07:48 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 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.





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 07:20 AM
Need to get value of gridview template columns for kmh030 ASP.NET 2.0 Professional 1 January 6th, 2007 11:10 PM
Dynamically Generating Textboxes Maxood PHP How-To 6 March 9th, 2006 09:14 AM
"Indent" field in gridview template. wirerider ASP.NET 2.0 Basics 0 March 1st, 2006 12:15 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.