Click here to Skip to main content
15,910,009 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I want to know in whether its possible to insert a textbox into an user control from the main .aspx page? If so how to do it? I'm a beginner in asp.net please help.
Posted
Comments
Naveen.Sanagasetti 18-Sep-15 2:51am    
What do you mean by Insert textbox into usercontrol.?
Please elaborate your requirement, so that we can help you in better way.
Krunal Rohit 18-Sep-15 3:39am    
C# or VB ? :D

-KR

1 solution

C#
TextBox txt = new TextBox();
userControl1.Controls.Add(txt);

like this ?

See this[^] for more idea. :)

-KR
 
Share this answer
 
v2

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