So the problem is this:
I have my own user control. which has some javascript file in the script tag included like this
<script type="text/javascript" src="../somefile.js" ></script>
or javascript code directly on the ascx page. everything works if I put this control somewhere in aspx markup. but if I add this control to the page dynamically to some UpdatePanel place holder during postback (this is logical, I canβt change it), the control renders itself, and then I get a js error message that says that the functions which are placed in somefile.js are not defined / equal to zero. Why is this happening? In any case, you need to enable js, including in this case.
sorry that it is not specific enough, but the amount of code is huge, and I could not provide a simplified example with the same error.
The script is included, but somehow the functions are not defined. I am new to js, ββso it is possible that only the script is included but not executed, so the functions are not declared ???
Interestingly, if on any page my user control is declared in aspx. Adding a few more instances dynamically does not cause problems.
danyloid
source share