最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
兼容ie,ff异步表单提交与无刷新提交
时间:2011-03-07 编辑:简简单单 来源:一聚教程网
兼容ie,ff异步表单提交与无刷新提交
htm代码
秦仕川
handler.ashx文件
<%@ webhandler language="c#" class="handler" %>
using system;
using system.web;public class handler : ihttphandler {
public void processrequest (httpcontext context) {
var name = context.request["username"];
var age = context.request["age"];
var address = context.request["address"];
var file = context.request.files[0].filename;
var ret = name + " " + age + " " + address + " " + file;
writeform(context, ret);
}
public bool isreusable {
get {
return false;
}
}
public void writeform(httpcontext context,string str)
{
string method = context.request["callback"];
string hs = "";
context.response.write(hs);
context.response.flush();
context.response.close();
context.response.end();
}
}
相关文章
- 使用iframe实现无刷新提交表单的例子 02-15
- C#复制数组的两种方式及效率比较解读 10-24
- ASP.NET Identity用法解析 10-24
- ASP.NET MVC使用Identity增删改查用户介绍 10-24
- C语言中atoi函数模拟实现介绍 10-18
- .Net反向代理组件Yarp用法介绍 10-10