467,074 Members | 1,071 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,074 developers. It's quick & easy.

Using POST to preserve state

I'm aware of how to preserve state using session, application variables,
view state, query strings, etc. I'm told that you can use POST to do a
similar state preservation. How does this work and/or could someone post a
quick example of how to store and retrieve? Thanks in advance.

Mark
Dec 13 '05 #1
  • viewed: 1081
Share:
3 Replies
Browsers can either GET or POST data back to the server.

GETs pass data on the query string.
POSTs pass data in the form.

Anytime you have a field in a form that uses the POST method, you are
preserving state using a POST. ViewState stores its data in a hidden field
and is an example of a POST.

-A

--

Andrew Robinson
www.binaryocean.com
www.bellinghamdotnet.org
"Mark" <ma**@nojunkmail.com> wrote in message
news:Om**************@TK2MSFTNGP12.phx.gbl...
I'm aware of how to preserve state using session, application variables,
view state, query strings, etc. I'm told that you can use POST to do a
similar state preservation. How does this work and/or could someone post
a quick example of how to store and retrieve? Thanks in advance.

Mark

Dec 13 '05 #2
Thanks. Is there a way to use the POST without including existing form
fields?

Thanks again.

Mark
"Andrew Robinson" <ne****@nospam.nospam> wrote in message
news:uZ**************@TK2MSFTNGP15.phx.gbl...
Browsers can either GET or POST data back to the server.

GETs pass data on the query string.
POSTs pass data in the form.

Anytime you have a field in a form that uses the POST method, you are
preserving state using a POST. ViewState stores its data in a hidden field
and is an example of a POST.

-A

--

Andrew Robinson
www.binaryocean.com
www.bellinghamdotnet.org
"Mark" <ma**@nojunkmail.com> wrote in message
news:Om**************@TK2MSFTNGP12.phx.gbl...
I'm aware of how to preserve state using session, application variables,
view state, query strings, etc. I'm told that you can use POST to do a
similar state preservation. How does this work and/or could someone post
a quick example of how to store and retrieve? Thanks in advance.

Mark


Dec 14 '05 #3
Don't think so. A POST posts back the form and will include all fields on
it.

--

Andrew Robinson
www.binaryocean.com
www.bellinghamdotnet.org
"Mark" <ma**@nojunkmail.com> wrote in message
news:ep**************@TK2MSFTNGP11.phx.gbl...
Thanks. Is there a way to use the POST without including existing form
fields?

Thanks again.

Mark
"Andrew Robinson" <ne****@nospam.nospam> wrote in message
news:uZ**************@TK2MSFTNGP15.phx.gbl...
Browsers can either GET or POST data back to the server.

GETs pass data on the query string.
POSTs pass data in the form.

Anytime you have a field in a form that uses the POST method, you are
preserving state using a POST. ViewState stores its data in a hidden
field and is an example of a POST.

-A

--

Andrew Robinson
www.binaryocean.com
www.bellinghamdotnet.org
"Mark" <ma**@nojunkmail.com> wrote in message
news:Om**************@TK2MSFTNGP12.phx.gbl...
I'm aware of how to preserve state using session, application variables,
view state, query strings, etc. I'm told that you can use POST to do a
similar state preservation. How does this work and/or could someone
post a quick example of how to store and retrieve? Thanks in advance.

Mark



Dec 15 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

9 posts views Thread by Greg Linwood | last post: by
1 post views Thread by Max | last post: by
reply views Thread by Emil Stoev | last post: by
4 posts views Thread by Mark | last post: by
1 post views Thread by soup_or_power@yahoo.com | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.