Resolve asp.net page Cannot find Ajaxpro related file problem

Source: Internet
Author: User

programming in the VS2015 IDE environment with your own IIS server debugger

IS7 under

method One:

To Modify a configuration file:

add Ajaxpro handle to the

<add name= "Ajaxpro" path= "Ajaxpro/*.ashx" verb= "Post,get" type= "ajaxpro.ajaxhandlerfactory, AjaxPro.2"/>

Note: Other places in the configuration add this handle can be considered for deletion.

The program called at the front desk JS method

function Getbinddata () {
var Balance = STL. Userpage. Getbinddata (). value;//namespace. Class name. Method Name
document.getElementById ("Lbuserbalance"). innertext = Balance;
}

Method in the CS background class

[Ajaxpro.ajaxmethod]
public string getbinddata()
{
Return "This is the test";
}

Method Two:

to modify the appropriate application pool properties for a site:

attribute: Managed piping Mode => Classic mode

or select the default classic. NET AppPool application pool directly.


IIS6 Representation Method:

<configuration>

<configSections>
<section name= "Rewriterconfig" type= "URLRewriter.Config.RewriterConfigSerializerSectionHandler, Urlrewriter "/>
</configSections>
<RewriterConfig>
<Rules>
<RewriterRule>
<LookFor>~/Index.aspx</LookFor>
<SendTo>~/Content/Index.aspx</SendTo>
</RewriterRule>
</Rules>
</RewriterConfig>

<system.web>
<add verb= "*" path= "*.aspx" type= "Urlrewriter.rewriterfactoryhandler, urlrewriter" />
</system.web>

</configuration>

Related Article

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.