Click here to Skip to main content
15,888,600 members
Please Sign up or sign in to vote.
1.11/5 (2 votes)
How to add multiple textbox dynamically and selected value from dropdown
Posted
Comments
BillWoodruff 14-Nov-13 10:19am    
We don't do homework. Show us some code, describe what you've done so far.

1 solution

Do you mean based on the dropdown value?

here is the code to create the textbox dynamically.Add a panel in aspx add the control to that panel.

C#
TextBox tb = new TextBox();
            tb.ID = "Sample";
            PaneltoHoldTB.Controls.Add(tb);
 
Share this answer
 
Comments
[no name] 14-Nov-13 5:51am    
it is possible in windows application if possible give me code plz...
hsakarp 14-Nov-13 6:10am    
From google...

http://www.aspforums.net/Threads/160388/Create-TextBox-dynamically-using-c-Windows-Form-Winforms-Application/

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900