VB.NET - how can we handle texboxes events those are dynamically created.

Asked By Anis Ul Hassan on 24-Mar-17 11:52 AM
Robbe Morris replied to Anis Ul Hassan on 24-Mar-17 11:54 AM
If this is windows, you have to manually wire up the event on the control before you add it to the control collection (presumably the form itself).

If this is ASP.NET using the postback model, you want to do something like this:

http://www.nullskull.com/a/1617/aspnet-dynamic-textbox--dropdownlist-control-viewstate-to-store-namevaluecollection.aspx