Featured post
asp.net - Using C#, how can I read the content of dynamic created textboxes? -
hy,
i have created dynamic textboxes standard content.
does know how can read content of these textboxes (assuming user modified standard content) when press 1 button?
thanks lot.
jeff
update
this how creating textboxes:
foreach (string name in listofnames) { textbox tb = new textbox(); tb.text = name; tb.borderstyle = borderstyle.none; tb.borderwidth = 0; tb.font.name = "arial"; tb.font.size = 8; }
the specific vary depending on technology using. concept remain similar, though asp.net little more interesting.
winforms/wpf/silverlight
maintain list of dynamically created textboxes , when button pressed can run through list of textboxes , read text
property user input.
asp.net - after tag update seems section appropriate requirement.
for asp.net need create textboxes in override of oninit method, should happen on each postback. in button.click
event can read user input textboxes created in oninit function. need ensure controls created same id
on each post back.
- Get link
- X
- Other Apps
Comments
Post a Comment