The method is: in the website properties --" "Main Directory --" "Configuration --" "Add a map of the .ashx file,
The file path of the mapping is: C: \\WINDOWS\\Microsoft.NET\\Framework\\v2.0.50727\\aspnet_isapi.dll Extension:
.ashx Action: GET, HEAD, POST, DEBUG
Check if the file exists or not. Br>
First add the following
<httpHandlers> <add verb="POST,GET" path="AjaxPro in the <system.web> of Web.config /*.ashx" type="AjaxPro.AjaxHandlerFactory, axPro" />
or (see version)
<add verb="POST,GET" path=" Ajaxpro/*.ashx" pe="AjaxPro.AjaxHandlerFactory,AjaxPro.2"/>
</httpHandlers>
Then add the following line of code in the server-side Page_Load AjaxPro. Utility.RegisterTypeForAjax(typeof(index));
The following is how to use the javascript to call the server-side method on the client side. The server-side method returns a DataSet
[AjaxPro.Aj axMethod] public DataSet Change() { string str="select xjh,xm from xs_jbxx"; ds=cla.Bind(str); return ds; }
Then call this method on the client
<script language="javascript"> function Change() { WebServer.index.Change(change_callback) } function change_callback(response) { var ds=response.value; var content=document.getElementById(" newDG"); var table=null; for(var i=0;i<ds.Tables[0].Rows.length;i++) { if(i==0) { table=ds.Tables[0].Rows [i].xm+"<br>"; } else { table+=ds.Tables[0].Rows[i].xm+"<br>"; } } content.innerHTML=table ; } </script>
Using other peoples hard disk to establish FTPFTP is a service that network admini
WIN2003 IIS 6.0 IIS does not automatically write logs. 1. Select the Start Logg
In the current Internet development, many unit users and even individual users ha
The author is the webmaster of a website. In order to protect the security of the website, the websi
One IP to build multiple Web sites - Host Header Method
Introducing the server security hotspot 12 technologies
Discuz (1040) notconnect error solution
Behind the longevity, should your server be changed?
Unreasonable configuration of Apache in WDCP
IDC server administrator must have LINUX knowledge
Considerations for server cluster high availability
Comprehensively improve the security performance of the FTP server
Win2000 virtual host basic permission settings
Open Windows To Go in the Win8 app store to take advantage of Group Policy
Win10 Preview 10547 Getting Started Video: Start Menu and Tablet Mode Improvement
Win10 technology preview system practical skills 4
How can I solve Win10 pictures?
Windows 7: Disk Checking and Organizing
Enhance the security of Windows XP shared resources.
Shielding the "chicken rib" network function Let XP speed mad
Teach you how to play win7 self-test function