tags:

views:

61

answers:

3

Hi,

i wanna change sender PAGE URL to anything in my website.

For example i got a webpage named "DEFAULT.ASPX" thats got a Form tag action="http://otherpage.aspx".When i submit form its sending my values thats in form to otherpage.aspx.This page is gettin them and do its work.

But otherpage.aspx is looking for sender page url and see in there ! its DEFAULT.ASPX (my page thats got form in it ) .I Wanna change my page url thats got form to "YOUCANTSEEMYREALPAGENAME.ASPX" ..

WHY I NEED THIS... There is a site that i wanna link to it.I have linked but if my URL isnot "yrmypage.aspx" its not working properly.So i need to hide my real page url and change into yrmypage.aspx :)

+1  A: 

The referrer is set by the browser. You cannot change it unless you are making the request from the server, yourself (in which case, you are essentially "the browser").

Mehrdad Afshari
A: 

Ibrahim, I'm not entirely familiar with this but I know that if you use Server.Transfer it would keep your URL as "Default.Aspx" I understand you are submitting and not redirecting but if you could somehow redirect instead it would look like this.

Server.Transfer("URL to go to",True)

This would redirect to the URL you need to go to but the URL would remain as Default.aspx.

It's the closest thing I can think of. Hope it helps sorry if it doesn't

Eric
A: 

You could place an iframe on the index page and set the src tag to your homepage. Any links clicked then wont change the url in the address bar.

Chalkey