Last post Feb 09, 2008 02:24 PM by rodchar
Feb 09, 2008 02:24 PM|rodchar|LINK
i have a web page which dynamically loads my WebUserControl with the LoadControl method.
The WebUserControl has just an empty GridView in which, in the code-behind, I dynamically add templated columns to the GridView.
I created a simple custom control (to start learning about them) which consists of a textbox, button, and calendar.
In one of the dynamic Edit Template Columns i'm also dynamically creating this custom control in the template class.
?? So when i run the application the custom control shows up fine when i put the GridView in edit mode. I can click on the custom control button and the calendar will show up just fine also. The problem is when i click the button again the calendar doesn't
go away, it just stays visible.
Can someone please show me the err of my ways?