好湿?好紧?好多水好爽自慰,久久久噜久噜久久综合,成人做爰A片免费看黄冈,机机对机机30分钟无遮挡

主頁 > 知識庫 > html+ashx 表單提交示例

html+ashx 表單提交示例

熱門標(biāo)簽:浦發(fā)電話機(jī)器人提醒還款 征途美甲店地圖標(biāo)注 柳州電銷機(jī)器人公司 昆明語音電銷機(jī)器人價(jià)格 電銷語音機(jī)器人型號參數(shù) 太原400電話上門辦理 騰訊地圖標(biāo)注手機(jī) 百度地圖怎樣做地圖標(biāo)注 400電話如何申請取消
1,sumbit表單提交

WebForm1.aspx源碼:
復(fù)制代碼 代碼如下:

%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="NETFormDemo.ashx.WebForm1" %>

!DOCTYPE html>

html xmlns="http://www.w3.org/1999/xhtml">
head >
meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
title>/title>
script type="text/javascript">

/script>
/head>
body>
form id="form1" action="submitForm.ashx" >
div>
input type="submit" value="提交" />
/div>
/form>
/body>
/html>

submitForm.ashx源碼:
復(fù)制代碼 代碼如下:

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

namespace NETFormDemo.ashx
{
/// summary>
/// submitForm 的摘要說明
/// /summary>
public class submitForm : IHttpHandler
{

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

public bool IsReusable
{
get
{
return false;
}
}
}
}

2,ajax提交
HtmlPage1.html 源碼:
復(fù)制代碼 代碼如下:

!DOCTYPE html>

html xmlns="http://www.w3.org/1999/xhtml">

head>
title>/title>
script src="test1.js" type="text/javascript">/script>
script src="jquery-1.4.min.js" type="text/javascript">/script>
script type="text/javascript">
function add(url) {
var A = $("#a1").val();
var B = $("#b1").val();
$.ajax({
url: "ashx/add.ashx?i=" + A + "j=" + B,
data: {
num1: A,
num2: B
},
dataType: "html",
success: function (result) {
}
});
}
/script>
/head>

body>
form id="form1" runat="server">
input type="text" id="a1" />
input type="text" id="b1"/>
input type="button" onclick="add()"/>
label id="lb">/label>
/form>
/body>

/html>

add.ashx源碼:
復(fù)制代碼 代碼如下:

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

namespace NETFormDemo.ashx
{
/// summary>
/// Login 的摘要說明
/// /summary>
public class Login : IHttpHandler
{

public void ProcessRequest(HttpContext context)
{
context.Response.ContentType = "text/plain";
int first = Convert.ToInt32(context.Request.Params["i"]);
int sec = Convert.ToInt32(context.Request.Params["j"]);

int res = first + sec;
context.Response.Write(res);
context.Response.Write("fdd ff");

}

public bool IsReusable
{
get
{
return false;
}
}


}
}

標(biāo)簽:天門 蘭州 張家界 白山 新疆 陽泉 德陽 江蘇

巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《html+ashx 表單提交示例》,本文關(guān)鍵詞  html+ashx,表單,提交,示例,;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問題,煩請?zhí)峁┫嚓P(guān)信息告之我們,我們將及時(shí)溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無關(guān)。
  • 相關(guān)文章
  • 下面列出與本文章《html+ashx 表單提交示例》相關(guān)的同類信息!
  • 本頁收集關(guān)于html+ashx 表單提交示例的相關(guān)信息資訊供網(wǎng)民參考!
  • 推薦文章
    主站蜘蛛池模板: 哪里可以看黄色片| 韩国A级情欲大片在线观看| 调教国产| 免费观看成年人视频| 99久久久久久精品国际性| 亚洲精品资源网在线观看| 阜康市| free第一次出血vide0s摘花| 国产乱码精品一区二区三区抖音| 国产一级高清视频| 欧美二区三区| jizzxxx4hd| 久久久久久久久久久久久蜜臀 | 亚洲国产精品日韩在线观看| 91在线无码精品秘?人口传媒| 一插综合网| 久久久噜噜噜久噜久久| 国产精品免费无遮挡无码永久视频| 刺激一区| 国产成人综合在线视频| 高h猛烈失禁粗壮公| 亚洲无人区一码二码三码的含义 | 亚洲 另类 小说 交换| 玖热在线| 远古共妻h| 欧美freesex?交免费视频| 男男gay中国免费网站| 娜美罗宾本子全彩无遮挡| 海角社区国产精伦| 久久久久久精品国产三级非禁歌| 被c爽的过程细节| 珠海市| 怡红院AV欧美AV动漫AV| 紧身裙女教师在线| 潘金莲一级婬片免费放播| 被多人强伦的小柔小说片段| 免费看美女吃男生私人部位| 欧美又黄又激烈真实床戏| 久久亚洲欧美日韩精品专区 | 久久久久久青草大香综合精品| 爱来的刚好全集免费观看|