Hello
I have a webpanel on a page with several text boxes. i call the SQLdatasource control to do a INSERT and get the exception that it cannot find the textboxs for the fields. i placed them oot of the panel and the insert works fine. is there something i am missing?
this also happens with the group box
please help as i just finished the page layout and it looks great but not working....
TIA
Since the textboxes are in a container control's template, the SQL DataSource will need their fully qualified ID in order to find them. You'll want to get the UniqueID of the TextBox and use that as the controlID parameter value. The easiest way to get the UniqueID is to start debugging and check the UniqueID property of the textbox when the page is loaded. It should be something like webpanel1_ctl0_textbox1
Hope this helps,
-Tony
Tony - Thanks
you pointed me in the right area.
i entered WebPanel1$textbox1 in the sqldatasource as the ControlID and it worked!
many thanks :)
Glad to hear it!