c# - Working with URL query Strings in ASP.NET -
i new working asp.net , want find best way work url query strings.
i can current value of url query string using request.querystring["urlkey"]
, can modify url code, without doing form get
submission?
if user landing on page first time, easiest way programmatically create ?urlkey=value
through page_load
method? or better of doing javascript or building redirect like: string redirect = "www.mysite.com?" + mykey + "=" + myvalue;
it sounds want this:
string redirect = "www.mysite.com?mykey=" + myvalue.tostring(); response.redirect(redirect);
Comments
Post a Comment