Forum Moderators: open

Message Too Old, No Replies

ASP: Questions about URLs

Questions about showing URLs in ASP pages

         

jeremyowens

11:30 pm on Jan 23, 2004 (gmt 0)



Question 1:
I have an ASP page that has a form on it using the submit function. When you make your selection, the same page reloads with the variable attached to the end of the URL. If a variable is present in the URL, it will dynamically load content from an Access database using the variable. Is there a way to re-write the submission process so that their choice doesn't show up in the URL, but is still readable when the page reloads?

Question 2:
On a seperate section of the same site, I have several pages of content. I've seen on sites like microsoft.com and others how they are able to hide the name of the page being viewed and only show the main URL of the site (i.e. [microsoft.com ]). How can I go about doing the same thing? Too many people link directly to the pages themselves instead of linking to the homepage. I use a nav bar on the homepage which links to the others. I've already done the "on mouseover" commands, but want to be able to hide the URL (or create a dynamic page that doesn't show the URL to the actual file).

Thanks in advance,

Jeremy

bakedjake

11:31 pm on Jan 23, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Welcome to WebmasterWorld, Jeremy!

Is there a way to re-write the submission process so that their choice doesn't show up in the URL, but is still readable when the page reloads?

Yes. Use the form method POST instead of GET.

(hide URLS) How can I go about doing the same thing?

Frames, but they're not very search engine friendly, and users can still link to specific pages within the frame.

You could also do a post to retrieve a certain page, but this isn't search engine friendly either.

IanTurner

3:07 pm on Jan 24, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Instead of the Variable (querystring) in the URL you can use Session Variables or you can submit via a hidden page which stores the info in a database and retrieves it on the main page (store IP & variable)