Hi
I have to set the value/text of address bar from browser.
I have tried this:
Request.URIRefferer.to String()
However I could find the value which can set the text on address bar.
Thanks in Advance
Printable View
Hi
I have to set the value/text of address bar from browser.
I have tried this:
Request.URIRefferer.to String()
However I could find the value which can set the text on address bar.
Thanks in Advance
What about this one ?
Code:Request.Url.AbsoluteUri
You cannot change the URL in the address bar from what it already is. You can read it. Or you can Response.Redirect the user to another page, which effectively changes the URL in the address bar. What are you trying to accomplish?
Actually trying to hide the URL bein represented in the Address bar, Like if it is http://192.168.100.45/MyPage.aspx
It should be displayed like http://MyDirectory/MyPage.aspx etc
Thanks
i am not 100% sure that this will help but you can give it a try.
http://msdn.microsoft.com/en-us/library/ms972974.aspx
It's an article about URL Rewriting in ASP.NET.
192.168.100.45 is an internal IP address, and MyDirectory is something local to you. Because it's internal, it's irrelevant what URL you use to browse to your pages. What matters is production/live. When working on a live environment, you may want http://example.com redirect to http://www.example.com, that's URL canonization and can either be done in code or at the ISP Registrar level, but you need to be more specific about what you want.Quote:
Originally Posted by Abbas Haider
Quote:
Originally Posted by selanec
This is somewhat helpful however it is too complicated, And thats the thing I want to achieve. One of my friends suggested that you are able to do so using GET/POST method, I have found the Get method from MSDN i.e:
http://msdn.microsoft.com/en-us/libr...od(VS.85).aspx
However I couldn't find the POST method, However I found this:
http://msdn.microsoft.com/en-us/library/debx8sh9.aspx
This method if applied works on same page, I need to pass values to other page,
If I use query strings then they are visible to end user and the page can be retrieved from history. If I use authentication on it for using Session("") object it cannot be done as I have already stated that my pages are scattered for different machines.
Please help.
If required I may start a new thread for security as basically I need to restirct the user for entering my page unless he logs in, The problem is my pages are scattered on different machines and they are not on one virtual directory
I redirects from one page to other like
Response.Redirect("http://192.168.102.2/OnePage.aspx") and so on