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 Basics
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking 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 Basics 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
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old December 19th, 2007, 07:10 AM
Authorized User
 
Join Date: Dec 2007
Location: valsad, gujarat, India.
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to dharmeshtandel
Default Dynamic textbox generation into gridview

Hi,
To All,
Can you give me the code or suggestion to generate the dynamic
textbox into the grid by clicking on the button.
for example: suppose i have a button called "option"
and by clicking on the button automatic row will be added,
and within row textbox is created.

Thanks,
regards
Dharmesh Tandel

dharmeshtandel
__________________
dharmeshtandel
Reply With Quote
  #2 (permalink)  
Old December 22nd, 2007, 02:38 PM
Registered User
 
Join Date: Dec 2007
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hey

Doubt in ur query...
Do u have the button inside the Grid View or placed outside..
(Is the button placed in the footer of the grid)





Swathi
Reply With Quote
  #3 (permalink)  
Old December 24th, 2007, 12:09 AM
Authorized User
 
Join Date: Dec 2007
Location: valsad, gujarat, India.
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to dharmeshtandel
Default

Quote:
quote:Originally posted by swathi_k_u
 Hey

Doubt in ur query...
Do u have the button inside the Grid View or placed outside..
(Is the button placed in the footer of the grid)





Swathi
i required the button outside the grid and when i press the button
the new row will be added into the grid with the textbox.and one more thing i want to specify the limit also.
please reply me.

dharmeshtandel
Reply With Quote
  #4 (permalink)  
Old December 24th, 2007, 02:14 AM
Registered User
 
Join Date: Dec 2007
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default


Initially make all ur columns as Template Columns..
In Edit Template Columns place TextBox(Visible=False) in Footer of the Column ..
Write these 2 lines in Button Click
        TextBox firstColumn = (TextBox)(GridView1.FooterRow.Cells[0].FindControl("TextBox1"));
        firstColumn.Visible = true;



Swathi
Reply With Quote
Reply


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
Dynamic PDF Generation sandyg Classic ASP Components 12 June 15th, 2008 04:51 AM
Dynamic textbox generation on the client-side dharmeshtandel ASP.NET 2.0 Basics 1 January 30th, 2008 10:35 AM
Dynamic generation of ADO recordset Pravin kumar Classic ASP Professional 3 March 12th, 2006 07:50 PM
Dynamic ASP button generation Lloyd_Christmas Classic ASP Basics 1 May 17th, 2005 07:50 PM
Dynamic Button Generation LouMattera BOOK: Professional C#, 2nd and 3rd Editions 2 March 4th, 2005 04:26 PM



All times are GMT -4. The time now is 10:14 PM.


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