Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 264
  • Last Modified:

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

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.
0
ziorrinfotech
Asked:
ziorrinfotech
2 Solutions
 
kaylanreilorCommented:
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());
0
 
ajollyCommented:
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
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now