Click here to Skip to main content
15,886,137 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Dear Friends,
I have some problem when implimenting code in my project.Actually i want to create text box but dyanamically.for example if i am select drop down values four so on this selected index change event you have to create 4 text box i can done but on this text box how to create events just like text box change events and if i am added some values in text box so how to give me this values on particular text box.i cant get in so please give me information as soon as possible.

Thanks in Advanced !!
Posted
Comments
Karthik_Mahalingam 4-Jan-14 12:04pm    
your question is to create dynamic controls or apart from that ??
please add more info..
Member 8089110 4-Jan-14 12:11pm    
when you have added control dyanamically then how to implements code just like if you are create dyanamic control text box then how to implements code for example text change event or if you have assign any value to that text box so how to get this value.
Karthik_Mahalingam 4-Jan-14 12:20pm    
you mean server event or client event (javascript ) ??
Member 8089110 4-Jan-14 12:37pm    
on server event
for example on dropdown product event
drdl_product_selectedindexchangedevent(object sender,eventergs e)
{
int i=convert.toint31(drdl.selectedvalue);
// consider i=4
for(int i=0;i<4;i++)
textbox tx=new textbox();
//consider in aspx page i have add div_control for adding this text box
div_control.add(tx);

}

when i run this program 4 text box created my problem is if i am added any values on this text box so
how to get this values in btn click event and if i want to create text change events in this text box so how to create event for this text box on server side.

Thanks in advanced !!
Karthik_Mahalingam 4-Jan-14 12:43pm    
in post back (button click) you need to get the textbox values ??

1 solution

 
Share this answer
 

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