change text in browser address field

  • Thread starter Thread starter Mortar
  • Start date Start date
M

Mortar

i would like to know if there is a way to change the address in the
browser, without actually changing to it or submitting.

i.e. after a page loads that has a querystring, i want to get rid of
the querystring and just leave the url (mypage.aspx?id=1 ->
mypage.aspx)
 
Mortar,



I don't know an answer to your question but if your intention is to prevent
your users from knowing your query string than simply hiding it is of no
use. If you use a trace tool (http://www.pocketsoap.com/) you can see that
this information is visible to everybody who wants to see it.

My suggestion therefore is that you should validate every request from your
users against your business logic. If you want to prevent your users from
guessing query strings you could also use guids instead of integers but even
with guids you should always validate every request.



HTHs



Daniel
 
When the page loads check whether the qs. is empty or not. save the value of
querystring to a session variable and then redirect to the page mypage.aspx
and then as the qs is empty, use the sessionvariable;)

regards
 
Back
Top