Overwriting viewstate

N

Nemisis

Hi everyone,

I have 2 pages, PageA and PageB. On PageA i allow our users to update
a details of a record using textboxes, dropdownlists etc. When a user
clicks on a button on PageA, i would like them to be directed to PageB.
Here they can select a value from a datagrid, and then go back to PageA
and continue updating the records details.

The value that the user selects on PageB, must be passed back to PageA.

In order to accomplish this sort of functionality, i thought that i
would have to somehow save the viewstate of PageA, and then after the
user has picked a value on PageB, i would direct them back to pageA and
reload the saved viewstate.

is this possible??

Is there an easier solution to what i am trying to do?

I CANNOT use Ajax, as this is for a Pda website, so javascript is very
limited, thus why i am having to go to another page to select a value.

Thanks in advance.
 
M

Mark Rae

Is there an easier solution to what i am trying to do?

I guess that depends on the particular PDA... Does its browser e.g. support
cookies...?
I CANNOT use Ajax, as this is for a Pda website, so javascript is very
limited, thus why i am having to go to another page to select a value.

How limited is 'limited'...? I've got round similar problems by opening a
second window and then updating the first window through the second window's
window.opener property:
http://www.webreference.com/js/tutorial1/opener.html
 
B

bruce barker

viewstate is a hidden field rendered on the page. you can not pass it
with a redirect. look a using server transfer instead.

note: pda a memory constrained, and you should avoid making viewstate
large. a datagrid may be sending megabytes of viewstate. for pdas you
should try to use session instead of viewstate.

-- bruce (sqlwork.com)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top