Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

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.


Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -