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

Popular posts from this blog

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

php - Zend Framework / Skeleton-Application / Composer install issue -