我想从GET获取值。我一直在用:
Request.QueryString["$random_var"]
现在成功了一会儿。突然,这段代码:
bool preview = (!string.IsNullOrEmpty(Request.QueryString["previewtheme"]));
产生此错误:
An object reference is required for the non-static field, method, or property 'System.Web.UI.UserControl.Request.get'
我使用以下内容:
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
是什么让asp.net不能做这个简单的任务呢?