开启.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");

posted @ 2019-11-07 15:45  changlinlo  阅读(147)  评论(0编辑  收藏  举报