conrad2010
asked on
QueryString has a value but not in code behind
when calling a page with a querystring, there is clearly a value there (i.e. www.mydomain.com/mypage.aspx?pair=value
in code behind (C#) the querystring shows up empty...
protected void Page_Load(object sender, EventArgs e)
{
var qs = Request.QueryString["pair" ].ToString ()
}
and the variable "qs" turns up empty...
any idea how that could happen? There are no redirects, it's all plain and simple...
in code behind (C#) the querystring shows up empty...
protected void Page_Load(object sender, EventArgs e)
{
var qs = Request.QueryString["pair"
}
and the variable "qs" turns up empty...
any idea how that could happen? There are no redirects, it's all plain and simple...
ASKER
bp turns up empty, either way I try this... been working with asp.net ever since it came out... never seen anything like this either...
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
try creating a brand new page --> that worked...
var qs = Request.QueryString["pair"
put a bp, and see what you get
or try this
var qs = Request["pair"]
i dont see any reason to loose the query string param...