Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
|
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 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 December 19th, 2007, 07:10 AM
Authorized User
 
Join Date: Dec 2007
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
 
Old December 22nd, 2007, 02:38 PM
Registered User
 
Join Date: Dec 2007
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
 
Old December 24th, 2007, 12:09 AM
Authorized User
 
Join Date: Dec 2007
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
 
Old December 24th, 2007, 02:14 AM
Registered User
 
Join Date: Dec 2007
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





Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamic PDF Generation sandyg Classic ASP Components 12 June 15th, 2008 03: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 06:50 PM
Dynamic Button Generation LouMattera BOOK: Professional C#, 2nd and 3rd Editions 2 March 4th, 2005 04:26 PM





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