Currently we are using query-string extensively in our asp.net application. Few days back we were working on enhancing the website. In this we first of all decided not to show the complete url of the webpage on the address bar for this i asked this question regarding it on SO
The best way we got was to use server.transfer(). But now it seems that the query-string does not work with it! Is there a way around this so we may use query-strings and do not display the url of the webpage on the address bar. Please guide.
Thanks in advance.
Server.Transfer should pass through any existing querystring or form collections to the called handler.
If you are calling
Server.Transfer(path, preserveForm), ensure that you are setting the second parameter totrue.However as you’ve found, you can’t set the path to a url with a querystrings when calling the Server.Transfer method.
Please also note the following potential issues with going down this route: