Connecting Tech Pros Worldwide Forums | Help | Site Map

Using POST to preserve state

Mark
Guest
 
Posts: n/a
#1: Dec 13 '05
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



Andrew Robinson
Guest
 
Posts: n/a
#2: Dec 13 '05

re: Using POST to preserve state


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" <mark@nojunkmail.com> wrote in message
news:OmxLXUDAGHA.3872@TK2MSFTNGP12.phx.gbl...[color=blue]
> 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
>[/color]


Mark
Guest
 
Posts: n/a
#3: Dec 14 '05

re: Using POST to preserve state


Thanks. Is there a way to use the POST without including existing form
fields?

Thanks again.

Mark


"Andrew Robinson" <nemoby@nospam.nospam> wrote in message
news:uZ1telDAGHA.3992@TK2MSFTNGP15.phx.gbl...[color=blue]
> 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" <mark@nojunkmail.com> wrote in message
> news:OmxLXUDAGHA.3872@TK2MSFTNGP12.phx.gbl...[color=green]
>> 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
>>[/color]
>
>[/color]


Andrew Robinson
Guest
 
Posts: n/a
#4: Dec 15 '05

re: Using POST to preserve state


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" <mark@nojunkmail.com> wrote in message
news:epDBKmMAGHA.1600@TK2MSFTNGP11.phx.gbl...[color=blue]
> Thanks. Is there a way to use the POST without including existing form
> fields?
>
> Thanks again.
>
> Mark
>
>
> "Andrew Robinson" <nemoby@nospam.nospam> wrote in message
> news:uZ1telDAGHA.3992@TK2MSFTNGP15.phx.gbl...[color=green]
>> 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" <mark@nojunkmail.com> wrote in message
>> news:OmxLXUDAGHA.3872@TK2MSFTNGP12.phx.gbl...[color=darkred]
>>> 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
>>>[/color]
>>
>>[/color]
>
>[/color]


Closed Thread


Similar ASP.NET bytes