473,386 Members | 1,823 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Overwriting viewstate

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.

Jan 24 '07 #1
2 1440
"Nemisis" <da*********@hotmail.comwrote in message
news:11**********************@m58g2000cwm.googlegr oups.com...
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
Jan 24 '07 #2
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)

Nemisis wrote:
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.
Jan 24 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

19
by: tweak | last post by:
I have been messing around with buffers, and I found it peculiar that the code below will run without a segmentation fault. As far as I know, overwriting the allocated space from a call to...
9
by: John Kirksey | last post by:
I have a page that uses an in-place editable DataGrid that supports sorting and paging. EnableViewState is turned ON. At the top of the page are several search fields that allow the user to filter...
3
by: Steve Drake | last post by:
All, I have a CONTROL that contains 1 control (Control ONE), the 1 control that it can contain 1 or 2 control (Control A and B). Control A, raises and event and Control ONE receives this event...
10
by: neo | last post by:
hi, I am studying ASP.NET and have few questions - 1) The session ID and values of controls is stored in VIEWSTATE variable. So now when we put EnableViewState="false" in Page directive and...
1
by: Simon | last post by:
Hi everyone, I have a quick question that I hope someone can help me with: I've made a user control that contains a text box and some validation functionality. This control has a few extra...
7
by: et | last post by:
I'm not sure I understand the use of the ViewState. Do I understand correctly that values of controls are automatically held in a hidden control called ViewState? If so, then why can't we get...
9
by: Mark Broadbent | last post by:
Been a while since I've touched asp.net but one thing that always seems to fustrate me is the loss of state on variable declarations. Is there anyway (i.e. assigning an attribute etc) to instruct...
6
by: hitendra15 | last post by:
Hi I have created web user control which has Repeater control and Linkbutton in ItemTemplate of repeater control, following is the code for this control On first load it runs fine but when...
12
by: Nick C | last post by:
Hi How can i reduce the viewstate for my asp.net application. It is getting very large now. What is a good solution? thanks N
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.