亚洲乱码中文字幕综合,中国熟女仑乱hd,亚洲精品乱拍国产一区二区三区,一本大道卡一卡二卡三乱码全集资源,又粗又黄又硬又爽的免费视频

ASP.NET中Ajax怎么使用

 更新時間:2016年07月11日 16:26:59   作者:A&B  
這篇文章主要介紹了ASP.NET中Ajax使用方法的相關(guān)資料,非常不錯,具有參考借鑒價值,需要的朋友可以參考下

在ASP.NET中應(yīng)用Ajax的格式如下:

前臺代碼(用JQuery庫)

$.ajax({
  type: "POST",
  async: true,
  url: "../Ajax/ajax.ashx",
  dataType: "html",
  data: null
  success: function (result) 
  {
  //do successful sth
  },
  error: function (XMLHttpRequest, textStaus, errThrown) 
  {
  //do error sth
  }
})

Ajax(一般性處理程序)中代碼如下:

public void ProcessRequest (HttpContext context) 
{
context.Response.ContentType = "text/plain";
string result = "Hello World";
context.Response.Write(result);
}

以上所述是小編給大家介紹的ASP.NET中Ajax使用方法的相關(guān)知識,希望對大家有所幫助,如果大家想了解更多內(nèi)容,敬請關(guān)注腳本之家網(wǎng)站!

相關(guān)文章

最新評論