Connect AJAX Extender inside UserControl (ascx) to TextBox on Webpage (aspx)
-
I need to subclass an extender control and put it inside a UserControl. But the target control will be on the webpage. However when I assign the TargetControlID="TextBox1" I get the following error:
Server Error in '/SampleWebSite' Application. ------------------------------------------- The TargetControlID of 'MyExtender' is not valid. A control with ID 'TextBox1' could not be found.
Here, "MyExtender" is the UserControl which has the extender control inside it. The "TextBox1" is on the webpage where this UserControl is used. Obviously it is looking for the TextBox1 inside the UserControl itself. How can I make it search on the entire webpage instead? What is the way to properly assign the TargetControlID in such a case? Thanks,modified on Thursday, March 13, 2008 7:11 AM