In the past few days, when I look at several examples, I will always see people asking about the "sys" undefined errors, and I have always been very grateful, why didn't I find this error !??
When doing exercises at noon today (Use client scripts to program updateprogress), I even found this problem... it's so dizzy. I used to be gloating .......
Only Google. I read a lot about the web. config solution, but I have no difference with what they said, but I still can't... now I checked the source file generated on the page and suddenly realized it !!
Error:
Source code:
.......
<! -- Code to be called -->
<Script language = "JavaScript" type = "text/JavaScript">
VaR PRM = SYS. webforms. pagerequestmanager. getinstance ();
Function cancelasyncpostback ()
{
If (PRM. get_isinasyncpostback ())
{
PRM. abortpostback ();
}
}
</SCRIPT>
<! -- The following is the HTML of the page -->
</Head>
<Body>
<Form name = "form1" method = "Post" Action = "default. aspx" id = "form1">
<Div>
<Input type = "hidden" name = "_ eventtarget" id = "_ eventtarget" value = ""/>
<Input type = "hidden" name = "_ eventargument" id = "_ eventargument" value = ""/>
<Input type = "hidden" name = "_ viewstate" id = "_ viewstate" value = "/inputs + m9ign + 2epj2fnje08g ="/>
</Div>
<SCRIPT type = "text/JavaScript">
<! --
VaR theform = Document. Forms ['form1'];
If (! Theform ){
Theform = Document. form1;
}
Function _ dopostback (eventtarget, eventargument ){
If (! Theform. onsubmit | (theform. onsubmit ()! = False )){
Theform. _ eventtarget. value = eventtarget;
Theform. _ eventargument. value = eventargument;
Theform. Submit ();
}
}
// -->
</SCRIPT>
<! -- Here is the key -->
<SCRIPT src = "/terryleeajaxstudy/webresource. axd? D = ufqkbchwn57exe0spcyarw2 & amp; T = 633088654060000000 "type =" text/JavaScript "> </SCRIPT>
<SCRIPT src = "/terryleeajaxstudy/scriptresource. axd? D = plain & amp; T = 633108589400000000 "type =" text/JavaScript "> </SCRIPT>
<SCRIPT src = "/terryleeajaxstudy/scriptresource. axd? D = plain & amp; T = 633108589400000000 "type =" text/JavaScript "> </SCRIPT>
......
I want to know why !?? The code order ...........
That is to say, the following referencesScriptresource. axd,You can use the "sys" mentioned above. Of course, it is not defined ......
Later, I put the Javascript I called at the end, OK, everything is OK .....