Something strange is happening here.
Let me explain the situation:
I have a page with a usercontrol used for popups. This usercontrol has a placeholder where I can load any other usercontrol dynamically inside the popup. Everything works smoothly thanks to ajax updatepanels.
One of the dynamically loaded usercontrols contains the following javascript declaration:
<script type="text/javascript">
function setup(){
alert("test");
}
</script>
In the codebehind, there's a method that includes this line:
ScriptManager.RegisterStartupScript(this, this.GetType(), "setup" + Guid.NewGuid().ToString(), "setup();", true);
The reason for adding a Guid is to prevent issues if the method is called multiple times.
This method is connected to a button. It works perfectly in Firefox but throws a Javascript error in IE8 saying:
"Object expected" on line 197910701 char 1
It's impossible to debug it as that line doesn't actually exist - any suggestions?