c# - Get text from dynamically-generated textbox to insert with button -
i creating divs textbox , button on each one. being created this:
textbox txtgosto = new textbox(); txtgosto.id = "txtgosto_" + postid;
then, button after eventhandler submit text.
btninsertpost.id = "btninsertpost_" + postid; btninsertpost.click += (sender, e) => { insertpost(sender, e, postid); };
the postid working , being passed argument, wondering how can text dynamic generated textbox , submit too.
think might after txtgosto.text property.
https://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.textbox.text(v=vs.110).aspx
Comments
Post a Comment