To get a QueryString value from the previous pages URL (aka: the UrlReferrer) you can use HttpUtility.ParseQueryString.
Like this!
NameValueCollection nameValueCollection = HttpUtility.ParseQueryString(Request.UrlReferrer.Query); string keyword = nameValueCollection["kw"];
“And that’s all I have to say about that.”
int k=9;
Response.Redirect(“new.aspx?k”,true);
nxt page ie:new.aspx
string str=Request.QueryString[“k”]
how to get value of k in new.aspx
I have tried this but my Request.UrlReferrer.Query is empty. Do you know any reason why the parameters are not being sent through
Request.UrlReferrer.Query is empty. Do you know any reason why the parameters are not being sent through
try:
Page.Request…