I am building a web form dynamically using VB 2005.
I add several textbox controls, radio button controls, checkbox list
controls, etc. to a placehoder control on the page, and I want to add an
event handler to handle the TextChanged or other appropriate event for all
the text boxes (they do not autopostback). When the page posts I want to
collect the data in the text boxes and save it to a database.
I'm not sure when/where I should add the textbox controls and link up the
event handlers, and how to capture the contents of the textboxes in the
event handler and identify which textbox fired the event.
I have attempted this using
AddHandler textbox1.TextChanged, AddressOf ehandler
but I can't get it to work!
Thanks for your help
Bill