ASP.NET中 method="post" 与 method="get" 区别
来源:互联网 发布:php在线提交系统 编辑:程序博客网 时间:2024/04/20 02:47
1. method="get"
使用这种方式提交到服务器的内容需要使用Request.QueryString来访问页面提交的内容(这些内容会在地址栏中被显示出来,不安全)本页面提交地址栏中会出现,观察下面连接中的红色区域
http://localhost:1317/ASP.Net/第三章/caputue3.aspx?__EVENTTARGET=&__EVENTARGUMENT=&__VIEWSTATE=%2FwEPDwUJLTI3NDg1Mjc4ZGQsz5ba%2Bod9%2FnR91ZtWz4LXeqyRBQ%3D%3D&__PREVIOUSPAGE=H3hWxUKv5kNTlPk3WmrxXndOm93-JnWoF2iWw0zQveZBF47Tt1JLvj0cbNxjxB7nxC85LErNUZNhWDN1-VVHj6i6_sz44KecCK2Kk7r3olnPpDET0&__EVENTVALIDATION=%2FwEWBQLGyNbcCgKd%2B%2F6QCQK7g%2FPJBgKM54rGBgKWq7mGAhG%2BNXpD%2BSlXShwNSDXmDemZXdbX&UsernameBox=xiang&PasswordBox=521&Button1=%E6%8F%90%E4%BA%A4
如果要在浏览器页面得到提交内容须使用
Request.QueryString["UsernameBox"]和Request.QueryString["PasswordBox"]来访问,其中“UsernameBox” 与“PasswordBox”为文本框控件的ID。
2. method="post"
使用Post方法
用户名: 密码:
跳转到Get页面
如果使用这种方法则在服务器端需要使用Request.Form["UsernameBox"]与Request.Form["PasswordBox"]来访问提交内容,这种方法有如下两种好处:第一地址栏不会显示提交内容;第二:提交信息量不受限制.
一般情况下注册页面都是采用第二种方法.
- ASP.NET中 method="post" 与 method="get" 区别
- 黑马程序员之ASP.NET学习笔记:Form表单中method=“post/get"
- method="get"与mehod="post"区别
- method=post和method=get的区别
- Form表单中method="post/get'的区别
- Form表单中method="post/get"的区别
- 网页表单中method="post/get"的区别?
- Form表单中method="post/get'的区别
- Form表单中method="post/get'的区别
- Form表单中method="post/get'的区别
- Form表单中method="post/get'的区别
- Form表单中method="post/get'的区别
- Form表单中method="post/get'的区别
- method=post/get区别记录
- 在html表单提交中method="get"和method="post"的区别:
- html中 的method=post和method=get的区别
- html中method get与post 的区别
- http表单中method的post与get区别
- Media开发之铃声设置(RingtoneManager)
- java基础整理之--基本数据类型
- 学位论文写作与word的爱恨情仇
- MySQL主从复制(Master-Slave)与读写分离(MySQL-Proxy)实践
- 努力成为优秀的工程师
- ASP.NET中 method="post" 与 method="get" 区别
- SOA标准之----JBI架构思想
- QT中如何驱动链接数据库MYSql
- ServiceMix流程介绍
- xcode中动态添加label控件(转)
- IPOD 1 之通知栏显示与交互
- Hadoop数据传输工具sqoop
- 从锤子手机发布说起
- Delphi Socket 编程(7)