Re: Address bar

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hi,

This is not directly related to ASP.NET.

The thing is that URLs are supposed to identify pages. You users most likely want to be able to see an URL that later can be used to get the page they are actually seeing.

Another thing is that the web server can't just tell what page you want to display so I will have to use one or more of file names, path info, query string, posted data.

You can on the other hand hide all the above from the main address by using frames, iframes (or other container objects) or AJAX to dynamically load content to the page.

Note that POST usually results in making the back button of the browser unusable because the browser wants to repost the data.

AJAX on the other hand does not support back button at all.

I would strongly recommend you to use distinct URLs for each page and your users will like that. If you want some cool looking URLs, use file names with no extensions or your own extension.

Kornél

Peter wrote:
Hi

I have a default.aspx page that will be loaded when user hit the / of my application root folder. In the page I have hyperlinks that will bring users to other pages. I would like to know how should I change my default.aspx page to make the address shown on the address bar remains unchanged but the page will actually display other pages. In the old days of HTML, I could use frames to create different frames to allow those new pages to be displayed on but this seems kind of dump using frames nowadays. Any easier way in asp.net to archieve this ?

Thanks in advance.
Peter


.


Quantcast