How to Clear the Query string.
my query string is “index.php?name=sugumar&id=49”
using meta tag I redirect the same page. that time the query string values are not cleared.
for that I have used.
Request.QueryString[1] = string.Empty;
but it shows the error.
syntax error, unexpected ‘[‘ in
/home/sugumar
Then I used
Request.QueryString.Clear();
it shows the error
Call to undefined function Clear() in
/home/sugumar
how to solve this problem? I want to clear the query string values before the meta tag redirect the page.
Try:
Other possibility is to simply not specify the query string values when you are redirecting:
Or
If that’s how you are doing it.