Request,Request.Form,Request.QueryString

2010-08-02 20:15:19

转:http://www.cnblogs.com/yejun/archive/2008/02/29/1085895.html

今天下午一直测试,终于把这个问题解决掉了,还是一开始没有很好的理解这获得参数的方法:

以前一直用request["id"].toString()来实现。今天,我们组的其它人用的是request.querystring()方法,一直有错误。获得不了提交的数据。

get方法。用request.querystring()方法。post方法用request["id"].tostring()方法

Request:能够获取表单和参数的值
Request.Form:只能获取表单的值
Request.QueryString:只能获取参数的值

你可能感兴趣的:(Request,Request.Form,Request.QueryString)