Link Between pages NOT using the GET method

  • Thread starter Thread starter Samuel Shulman
  • Start date Start date
S

Samuel Shulman

Hi

I need to add a link from one page to another and send a parameter NOT using
the Get

What would be normally the way to do that? Can I use the post method and
how?

Thank you,
Samuel
 
The only option you have is to use POST. A link would have to trigger a
javascript method that invoked the this.form.submit(); option.

<a href="javascript: this.form.submit();">link</a>

And the params you need to pass would have to be form fields to be extracted
from the request object at destination


--
--
Regards

John Timney (MVP)
VISIT MY WEBSITE:
http://www.johntimney.com
http://www.johntimney.com/blog
 
You can do it using POST with some javascript involved.
1. Make empty form
<form myname="myform">
<input type=hidden name=parameter value=1>
</form>

2. Your link should look like
<a href="javascript:document.myform.submit();">this is a link to submit
form</a>

George.
 
Hi
I need to add a link from one page to another and send a parameter NOT using
the Get

What would be normally the way to do that? Can I use the post method and how?

Thank you,
Samuel

In addition to the POST methods:

If both pages are within the same application, then you could also use
a linkbutton (instead of a hyperlink). In the Click handler (at the
server), store the value for the other page in Session and issue a
Redirect to that page. That next page can retrieve the value from the
Session, it will not show up in the URL.

Hans Kesting
 
Back
Top