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
a simple msgbox will do in the pageload
MsgBox(WebDropDown1.UniqueID)
here's a stupid question for you:
After I start my ASP.Net application in Debug mode, where do I "check the UniqueID property" of a control, as recommended above? Which window shows that?
I'm trying to create a SQL Data Source to get a Parameter value from a WebDropDown on the same web form, but there are no items in the ControlID combo box on the SQL Data Source configure wizard.
How do I get values to show up there? Thanks.
Glad to hear it!
Tony - Thanks
you pointed me in the right area.
i entered WebPanel1$textbox1 in the sqldatasource as the ControlID and it worked!
many thanks :)
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