If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Hiding part of the url in the address bar

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-01-02, 14:08
mvargasp mvargasp is offline
Registered User
 
Join Date: Aug 2002
Posts: 25
Exclamation Hiding part of the url in the address bar

Hi all

I have to call an aspx page with two parameters, is there a way to call this page with these two parameters, but hiding the parameters in the address bar?

for example:

Users have to see in the address bar: http://serverx/webApp1/page1.aspx
But the url used to call the page is: http://server1/webApp1/page1.aspx?par1=123&par2=456

Thanks in advance
Reply With Quote
  #2 (permalink)  
Old 10-02-02, 08:45
Mulligan Mulligan is offline
Registered User
 
Join Date: Jul 2002
Posts: 55
Not that I know of. Sorry. If you want to (ASP here, don't know much about ASPX though I understand they're similar) pass anything to the Request.QueryString object, that's how you do it.

Can't you POST your data?

Mull.
Reply With Quote
  #3 (permalink)  
Old 10-03-02, 07:14
pickledAvenger pickledAvenger is offline
Registered User
 
Join Date: Apr 2002
Location: England
Posts: 21
Re: Hiding part of the url in the address bar

I would imagine it's possible to pass the parameters using a form, set the method to POST and there should be no query string in the address bar.

If you need info let me know.

Last edited by pickledAvenger; 10-03-02 at 07:17.
Reply With Quote
  #4 (permalink)  
Old 10-03-02, 08:56
WraithOfDark WraithOfDark is offline
Registered User
 
Join Date: Oct 2002
Posts: 7
Save the variables using Application or Session if you are passing from an ASP page.

Just before the Response.Redirect (if thats what your using) add:
Session("par1")=par1
Session("par2")=par2

Then load them on the new page:
par1=Session("par1")

And use them.
This sort of system will work fine if you are passing from an AspX page and the params are static.
Otherwise you can create a Session("params") variable with a list of all the params the destination page has to process. You can then split the params list using Split(), put them to an array and use a 'for each' to run through and load each parameter or load them as needed.

If you're posting from an HTML page or other non AspX source you will have to use forms. You can hide the form fields and use JavaScript to post the form for you.
Reply With Quote
  #5 (permalink)  
Old 10-03-02, 10:36
mvargasp mvargasp is offline
Registered User
 
Join Date: Aug 2002
Posts: 25
Thanks for all of you

I prefer not to use session variables because of the memory usage, so I'll try with the post method.

Best regards
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On