1、新建 InterfaceTestPro1 项目:

FILE - New - Project... - Web - ASP.NET Web Forms Application

name:InterfaceTestPro1

2、新建 test.ashx 项:

项目右键 - Add - New Item.... - Generic Handler

name:test.ashx

将 ProcessRequest 方法替换成如下代码

            context.Response.ContentType = "text/plain";
RspMsg rspMsg = new RspMsg();
string name = context.Request.Form["name"].ToString();
rspMsg.ReturnCode = "";
rspMsg.ReturnMessage = "Welcome " + name;
context.Response.Write(rspMsg.ToString());

3、新建 test.html 项:

项目右键 - Add - New Item.... - HTML Page

name:test.html

代码如下

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<form name="form1" method="post" action="test.ashx">
name: <input type="text" name="name" value=""/>
<input type="submit" value="submit"/>
</form>
</body>
</html>

4、效果演示:

提交

右键查看源码

最新文章

  1. CSS 中 Font-Family 中英文对照表
  2. UDP收发buffer尺寸对收发包流量的影响
  3. ubuntu SecureCRT破解
  4. Spark SQL External Data Sources JDBC官方实现读测试
  5. vs2015-Azure Mobile Service
  6. jdk各个版本
  7. Windows 已在 DImageProcess.exe 中触发一个断点。
  8. 《火球——UML大战需求分析》(第1章 大话UML)——1.5 小结和练习
  9. SQLServer 分组查询相邻两条记录的时间差
  10. nginx的https环境如何配置
  11. 从送外卖到建站售主机还有共享自行车说起-2017年8月江西IDC排行榜与发展报告
  12. SpringBoot2.x开发案例之整合Quartz任务管理系统
  13. python github
  14. Springboot的日志管理&amp;Springboot整合Junit测试&amp;Springboot中AOP的使用
  15. shell 的条件表达式及逻辑操作符简单介绍
  16. python接口自动化测试十一:传参数:data与json
  17. laravel管理员表中的模型
  18. RSA实现前端数据加密
  19. R9—R常用函数分类汇总
  20. Logger.getLogger()和LogFactory.getLog()的区别

热门文章

  1. hdu 4586 Play the Dice
  2. MySQL数据导出导入【转】
  3. java 写文本文件
  4. DP方程及意义
  5. java:内部类与外部类的区别和联系
  6. React表单组件自定义-可控及不可控组件
  7. 64位下好神奇啊(增加了PatchGuard技术保护自己,SSDT是相对地址,参数通过寄存器与rdi来传递)
  8. C++:对象的赋值和复制
  9. Android 给listview设置分割线与边界的距离
  10. mongodb group分组