Home > Web Front-end > JS Tutorial > Form serialization and serialize usage examples in jq_javascript skills

Form serialization and serialize usage examples in jq_javascript skills

WBOY
Release: 2016-05-16 16:58:44
Original
1045 people have browsed it
复制代码 代码如下:























姓名



密码










复制代码 代码如下:

///
/// 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;
}
}
}
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template