HTTP Post

  • Thread starter Thread starter BVS
  • Start date Start date
B

BVS

Presently, my website which is written in c# uses this command to move
around my site:

Response.Redirect("products.aspx?pro="+thechosenproduct)

Is there a way to switch this to a POST method so that the pro= doesn't
appear in the address bar?
 
Insted of using Querystring...you can store value in Session object and can
transfer value from one page to another. Another option available is using
"cookies", you can transfer value from one page to another.

Raj
 
If your are posting to the same page you could use a server.transfer. This
would send back the page that you requested but beep the url the same as pre
post.

e.g

Page products.aspx you click the link and post to product.aspx?pro=1234.
This would post to the url you requested but the user would still see
products.aspx.

Just a thought.
 
If you are just concerned about the value displaying the querystring, then
look at URL ReWriting instead. You don't need to post. The problem with post
is that a search engine cannot click the linkbutton or button so anything
behind a postback is hidden (unless you have an alternative route).


--
Best regards,
Dave Colliver.
http://www.AshfieldFOCUS.com
~~
http://www.FOCUSPortals.com - Local franchises available
 
Back
Top