I found that I can't use "RegisterClientScriptBlock" in user control. So if my user control need javascript to run, then how do I send this javascript code from user control to the parent page (which use this user control)?
but note you can add your control more than one time to the page and if your js-Function is called jsDoSomething() it will be appear more times on the Page and then you get js errors!! Therefore i name my js-Functions like this:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.