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¶m=1
i want include parameter used following function:
string url = currentpage.linkurl; response.redirect(url+"?output=html¶m=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 + "¶m=1");
Comments
Post a Comment