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

Popular posts from this blog

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

c++ - How do I get a multi line tooltip in MFC -

unit testing - How to mock PreferenceManager in Android? -