开启.NET之旅

首先安装好编辑器 Visual Studio

asp.net中get和post    ashx接收数据语法

from表单是get  后台语法  :context.Request.QueryString["name"];

from表单是post 后台语法  :context.Request.Form["name"];

获取int类型的值  :   int num = Convert.ToInt32(context.Request.Form["int"]);

替换页面中的站位符  : fileContent = fileContent.Replace("fileContent");

页面跳转  : context.Response.Redirect("xxx.ashx");

原文地址:https://www.cnblogs.com/lin02/p/11790897.html