Groups | Blog | Home
all groups > asp.net webservices > september 2004 >

asp.net webservices : Hide Query String



Thom Little
9/25/2004 6:02:36 PM
If a page is invoked with a query string, that Request.QweryString is
visible on the command line. Something like:

http://www.sample.com/default.aspx?customer=ACME

Is there a convenient way to hide the question mark and everything to the
right of the question mark?

--
-- Thom Little -- www.tlaNET.net -- Thom Little Associates, Ltd.
--


Sahil Malik
9/26/2004 1:54:37 PM
I have a similar requirement in the website I am architecting.

There are two answers ---

1. Instead of query string, use hidden variables or forms to communicate
your data.
2. A more complex approach is to write an ISAPI filter that maps every
possible query string to an alternate friendly URL.

- Sahil Malik
You can reach me thru my blog -
http://www.dotnetjunkies.com/weblog/sahilmalik


[quoted text, click to view]

Thom Little
9/26/2004 4:44:34 PM
Thank you for the confirmation. The only way I could find was to use an
ActiveX control that embedded the browser in the WinForm.

I have a WinForm that sends information to a WebForm and the WebForm
displays it and allows the caller to download a file based on controls in
the WebForm.

From the applications I have seen in many delivered products there is no
easy way to remove the query string other then use an ActiveX control.

I would like to have a canned messages that could be optionally displayed
based on information from the WebForm. "You have the latest version".

I have yet to figure out how to examine information from the WebForm while
inside the WinForm.

--
-- Thom Little -- www.tlaNET.net -- Thom Little Associates, Ltd.
--

[quoted text, click to view]

Sahil Malik
9/26/2004 4:50:22 PM
You could do a HTTP Post from your winform .. essentially that is what the
activex control must be doing.

- Sahil Malik
You can reach me thru my blog -
http://www.dotnetjunkies.com/weblog/sahilmalik


[quoted text, click to view]

Thom Little
9/26/2004 4:57:27 PM
I'm hopping to find a way to do it without ActiveX.

--
-- Thom Little -- www.tlaNET.net -- Thom Little Associates, Ltd.
--

[quoted text, click to view]

AddThis Social Bookmark Button