濮阳杆衣贸易有限公司

主頁 > 知識(shí)庫 > asp.net jquery+ajax異步刷新實(shí)現(xiàn)示例

asp.net jquery+ajax異步刷新實(shí)現(xiàn)示例

熱門標(biāo)簽:察縣地圖標(biāo)注 蓄意標(biāo)記地圖標(biāo)注 信貸電銷機(jī)器人有用嗎 如何用地圖標(biāo)注各分公司 辦理一個(gè)400電話多少錢 廣西ai語音電銷機(jī)器人哪家好 電銷機(jī)器人適用范圍 接聽電話機(jī)器人哪有 莆田防封電銷卡價(jià)格
復(fù)制代碼 代碼如下:

!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
html xmlns="http://www.w3.org/1999/xhtml">
head>
title>/title>
script charset="gb1232" src="Scripts/jquery-1.4.1.min.js" type="text/javascript">/script>
script type="text/javascript">
// function sys() {
// $.post("test1.ashx", {"Name":$("#text1").val()}, function (data) {
// $("#text2").val(data);
// });//第一種方案,要在text1添加onblur="sys()"事件響應(yīng)
// }
$(document).ready(function () {
$("#text1").blur(function () {
$.post("test1.ashx", { "Name": $("#text1").val() }, function jy(data) {
$("#text2").val(data);
});
});
});//第二鐘方案
/script>
/head>
body>
input type="text" id="text1" />
轉(zhuǎn)換
input type="text" id="text2" />
/body>
/html>

asph處理程序如下:
復(fù)制代碼 代碼如下:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace 異步刷新
{
/// summary>
/// test1 的摘要說明
/// /summary>
public class test1 : IHttpHandler
{

public void ProcessRequest(HttpContext context)
{
context.Response.ContentType = "text/plain";
string name = context.Request["Name"];
context.Response.Write(name);
}

public bool IsReusable
{
get
{
return false;
}
}
}
}
您可能感興趣的文章:
  • jQuery ajax請(qǐng)求struts action實(shí)現(xiàn)異步刷新
  • php+jQuery+Ajax簡單實(shí)現(xiàn)頁面異步刷新
  • jQuery使用$.ajax進(jìn)行異步刷新的方法(附demo下載)
  • Ajax實(shí)現(xiàn)異步刷新驗(yàn)證用戶名是否已存在的具體方法
  • ajax異步刷新實(shí)現(xiàn)更新數(shù)據(jù)庫
  • ajaxpro.dll 控件實(shí)現(xiàn)異步刷新頁面
  • 如何手寫Ajax實(shí)現(xiàn)異步刷新

標(biāo)簽:鷹潭 儋州 延邊 益陽 阿拉善盟 張掖 銅陵

巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《asp.net jquery+ajax異步刷新實(shí)現(xiàn)示例》,本文關(guān)鍵詞  asp.net,jquery+ajax,異步,刷新,;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問題,煩請(qǐng)?zhí)峁┫嚓P(guān)信息告之我們,我們將及時(shí)溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無關(guān)。
  • 相關(guān)文章
  • 下面列出與本文章《asp.net jquery+ajax異步刷新實(shí)現(xiàn)示例》相關(guān)的同類信息!
  • 本頁收集關(guān)于asp.net jquery+ajax異步刷新實(shí)現(xiàn)示例的相關(guān)信息資訊供網(wǎng)民參考!
  • 推薦文章
    习水县| 营山县| 唐山市| 濉溪县| 柳江县| 沙湾县| 巍山| 读书| 丹棱县| 凤山县| 鸡西市| 湟源县| 镇平县| 巨鹿县| 滕州市| 和龙市| 恩施市| 左贡县| 南开区| 成武县| 湘潭县| 苍溪县| 天气| 桦南县| 慈溪市| 石首市| 安义县| 渝中区| 筠连县| 昭觉县| 象州县| 汝州市| 英超| 九龙坡区| 德州市| 河北省| 巴中市| 凤城市| 江油市| 石林| 尚义县|