Use aspx.net todayAjaxThe modalpopup control in is used to refresh some pages. However, an error message is displayed when you debug the program"Sys"UndefinedIn Baidu Google, you need to add a configuration on the Web. config page. The Code is as follows:
<Location Path ="Scriptresource. axd">
<System. Web>
<Httphandlers>
<Remove verb = "*" Path = "*. asmx"/>
<Add verb = "*" Path = "*. asmx "Validate =" false "type =" Microsoft. web. script. services. scripthandlerfactory, Microsoft. web. extensions, version = 1.0.61025.0, culture = neutral, publickeytoken = 31bf3856ad364e35 "/>
<Add verb = "*" Path = "* _ appservice. axd "Validate =" false "type =" system. web. script. services. scripthandlerfactory, system. web. extensions, version = 1.0.61025.0, culture = neutral, publickeytoken = 31bf3856ad364e35 "/>
<Add verb = "Get, head" Path ="Scriptresource. axd"Type =" system. Web. Handlers. scriptresourcehandler, system. Web. Extensions, version = 1.0.61025.0, culture = neutral, publickeytoken = 31bf3856ad364e35 "Validate =" false "/>
</Httphandlers>
</System. Web>
</Location>
After the increase, the error is eliminated. Haha!
By the way, you can add additional knowledge and extend it to the WebService method.
WebService MethodUndefinedSolution:
Add the following code to Web. config:
<Httphandlers>
<Remove verb = "*" Path = "*. asmx"/>
<Add verb = "*" Path = "*. asmx" Validate = "false" type = "system. Web. Script. Services. scripthandlerfactory"/>
<Add verb = "Get, head" Path ="Scriptresource. axd"Type =" system. Web. Handlers. scriptresourcehandler, system. Web. Extensions, version = 1.0.61025.0, culture = neutral, publickeytoken = 31bf3856ad364e35 "Validate =" false "/>
</Httphandlers>