I am trying to get the values from GET. I've been using:
Request.QueryString["$random_var"]
with success for a little while now. Suddenly, this code:
bool preview = (!string.IsNullOrEmpty(Request.QueryString["previewtheme"]));
Produces this error:
An object reference is required for the non-static field, method, or property 开发者_C百科'System.Web.UI.UserControl.Request.get'
I am using the following:
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;
Any ideas of what is keeping asp.net from doing this simple task?
精彩评论