This is also an undefined error about "sys ".

Source: Internet
Author: User

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 .....

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.