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>