Asp.net系统对象
电脑版发表于:2019/7/15 20:27
Asp.net系统对象
asp.net常见的七个系统对象,分别为Request, Response,Server,Page,Application,Cookie,Session
Request常用的方法;
.QueryString(); 获取Get请求的参数
.Form(); 获取Post()请求的参数
[] 获取请求所带来的参数(get,post,put,delete)
Request常用的方法;
.Write(); 输出文本 html
.Redirect(); 重定向
.End(); 终止请求
.Server
.MapPath(); 将相对路径转化为绝对路径
.Page
.IspostBack 判断页面是首次加载的,还是数据回发
生命周期
初始化(3),加载(3),渲染(2),卸载(1)
Application,Cookie,Session区别和用法
https://blog.csdn.net/baidu_21132571/article/details/46965053
详细:
https://www.cnblogs.com/zhengguangITelite/archive/2012/02/16/2354676.html
生命周期详细:
https://www.cnblogs.com/jackcxd/archive/2010/05/29/1746310.html