asp.net - C# ASP Response.Redirect URL Parameter being moved in output URL -


i'm using response.redirect to refresh page parameter appended end of url reason parameter being moved different part of url.

here's example, url http://domain.com/en/members/careers/vacancies/?output=html

i want url refresh following: http://domain.com/en/members/careers/vacancies/?output=html&param=1

i want include parameter used following function:

string url = currentpage.linkurl; response.redirect(url+"?output=html&param=1"); 

yet when page refreshes has redirected following url: http://domain.com/en/?output=html/members/careers/vacancies/

i have no idea why the output parameter being put there after /en/ or second parameter has gone.

i've been @ few hours , i'm going crazy looking @ it, suggestions on appreciated. thanks!

maybe try instead of currentpage.linkurl. in response.redirect take out "?output=html" in string

string url = system.web.httpcontext.current.request.url.absoluteuri; response.redirect(url + "&param=1"); 

Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -