您好,欢迎访问一九零五行业门户网

表单序列化与jq中的serialize使用示例_javascript技巧

复制代码 代码如下:
姓名
密码
复制代码 代码如下:
///
/// handler 的摘要说明
///
public class handler02 : ihttphandler
{
///
/// 请求处理
///
///
public void processrequest(httpcontext context)
{
context.response.contenttype = text/plain;
// 方式2(对应表单序列化)
string username = context.request.form[txtusername].tostring();
string userpwd = context.request.form[txtuserpwd].tostring();
context.response.write(string.format(姓名:{0},密码:{1}, username, userpwd));
context.response.end();
}
public bool isreusable
{
get
{
return false;
}
}
}
其它类似信息

推荐信息