how to know the page name when it comes from Server.transfer

ziorrinfotech
ziorrinfotech used Ask the Experts™
on
I am using server. transfer to send user from one page to another in my asp.net website.
but the problem is in the address bar of user`s browser the file remains same like oldpage.aspx

is there any way by which i can know the name of aspx page and also show the correct page file in adresss bar.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
That's what Transfer is for actually. Else, you should use Response.Redirect() with the parameters if needed :
Response.Redirect("NameOfMyPage.aspx?arg0=",myParam.ToString());
Commented:
and even then if you need to use server.transfer, you will need to do URL rewriting.
see the following link for a good work for URL rewriting:

http://codeeleven.blogspot.com/2007/11/rewriting-urls-in-aspnet-without-using.html

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial