View Single Post
  #4 (permalink)  
Old 11-03-09, 22:30
Teddy Teddy is offline
Purveyor of Discontent
 
Join Date: Mar 2003
Location: The Bottom of The Barrel
Posts: 6,075
Unfortunately there isn't. Dynamically created controls simply don't exist on postback due to the stateless nature of http. Since you are creating the controls after viewstate gets wired up (just before page_load), you won't get viewstate or event firing for your dynamically created controls.

You might want to fake it out with a hidden control that will store relevant information to be handled on postback. You can then populate that control with a bit of javascript. Another option would be to use the "clientside callback" facilities provided with the framework.


Edit: Read up on SQL injection and using prepared statements. You've got some problems there. Also, you might find the StringBuilder class to be useful.
__________________
oh yeah... documentation... I have heard of that.

*** What Do You Want In The MS Access Forum? ***

Last edited by Teddy; 11-03-09 at 22:57.
Reply With Quote