.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> ASP.Net >> Post New QuestionBookmark and Share Subscribe to Forum

Adding textboxes at runtime

Posted By: Ravindra     Posted Date: March 06, 2010    Points:2   Category :ASP.Net
How to add textboxes at runtime to website

Responses
Author: pradeep             
Posted Date: March 06, 2010     Points: 5   

<asp:textbox id="textbox1" runat="server"/>

Author: Ravindra             
Posted Date: March 06, 2010     Points: 5   

Thanks..

This is the code for html server control...
i need to add textboxes dynamically to the website based on the requirements,
i.e if i hav some 10 fields in database i need to load them dynamically in 10 textboxes at runtime

Author: Lalij Mer             
Posted Date: March 07, 2010     Points: 5   

Show here articles will help you

Create text box dynamically Runtime

http://aspdotnetcodebook.blogspot.com/2008/03/how-to-create-textbox-control.html

More example Here will help

http://geekswithblogs.net/dotNETvinz/archive/2009/03/17/dynamically-adding-textbox-control-to-aspnet-table.aspx


Please Check my answer if you help....
Thank You...

Lalit.
Author: abhay             
Posted Date: March 08, 2010     Points: 5   

Textbox txt = new Textbox();
and append this controls to a div or td of a table like this

id of td or div .Controls.Add(txt);



Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend