473,568 Members | 3,087 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

saveviewstate for the entire page

I have a page that needs lookups on it, so I am forced to leave the
page to get the lookup value then return to the original page. The
way I am storing the info the user has already entered is to put each
field in a session variable. Shouldn't I be able to save the
viewstate for all the controles on a page to a single variable then
load them back with loadviewstate? I have tried this but can't seem
to get it to work, if any one has any source code doing this that
would be great.
Nov 18 '05 #1
2 1225
have you considered opening a new child window to perform the lookup ?

"David Palfery" <da**@palfery.c om> wrote in message
news:98******** *************** ***@posting.goo gle.com...
I have a page that needs lookups on it, so I am forced to leave the
page to get the lookup value then return to the original page. The
way I am storing the info the user has already entered is to put each
field in a session variable. Shouldn't I be able to save the
viewstate for all the controles on a page to a single variable then
load them back with loadviewstate? I have tried this but can't seem
to get it to work, if any one has any source code doing this that
would be great.

Nov 18 '05 #2
Yes but I didn't think it was possible in asp.net. how whould that be done?
Nov 18 '05 #3

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

Similar topics

2
1563
by: FlashMerlot | last post by:
We have an ASPX (C#) webform which hosts dropdownlists, textboxes, grids, checkboxes, etc. The users want to: #1 - "FREEZE" the entire webpage contents (and state) #2 - move IE browser to another URL (possibly several URLs ... maybe even terminate the session and restart another session an hour+ later) #3 - but eventually to return to...
0
3078
by: Showjumper | last post by:
Hi, I have implemented the istatemanager interface in control so that i can retrieve values from the viewstate and then update my control. The control is an image gallery and i want it to react to postbacks i.e a dropdown list of image folder choices - user selects a folder and then my control will display from that folder. However, in using...
4
1572
by: Peter Strĝiman | last post by:
Hi. I have an ASP page that will receive a lot of post data ( sometimes many MB! ). The ASP page processes the data sequentially, but does not need the entire data stored in memory. Therefore it is cruicial that executing the ASP page doesn't wait for the entire request to arrive. Then I would just begin to chunk my way through the...
7
2140
by: Martin | last post by:
Hi, I have a standard aspx page (form) that contains a few user controls. Upon form submission the page is validated. If validation passses then a text based email is sent. This is all working fine, however what I would like to do is sent the entire contents of the posted back page as a HTML email. Is this possible and if so could...
3
2439
by: Brano | last post by:
HI all, I have a problem i have a web application that was working fine and this morning when i run it and click on a button that does Reponse.Redirect to a page i get this error : Server Error in '/IPFWEb_6' Application. -------------------------------------------------------------------------------- Object reference not set to an...
4
1462
by: David Thielen | last post by:
Hi; I have a page where the file.aspx.cs Page_Load() method writes the entire contents out directly. I use this to write a pdf or rtf file as the web page to display. In .net 1.1 the way I did this was: Response.ContentType = contentType; Response.BinaryWrite(((MemoryStream)proc.GetReport()).ToArray()); Response.End();
7
2801
by: tshad | last post by:
I thought I understood how the SaveViewState is working and was trying to use this (as per some code I found) to detect refreshes. It seemed to be working but I found that the SaveViewState was executing twice on load of page and can't figure out why. I was writing out to a text file in the SaveViewState event and it was writing it twice...
0
1137
by: peter stickney | last post by:
Excuse the babbling or lack of sense, it's been a long day. I am making a flat file, static HTML search engine for a site. I downloaded a script from the net and have been working with it for my needs. Everything was working OK with a few test Lorem Ipsum pages. But the moment I try to search real data, fit hits the shan. The script...
0
1583
by: Louis Somers | last post by:
Hi, I have a simple ASPX page called Default.aspx. On it (nested within allot of other stuff) I have a custom control which inherits from TableRow and implements IPostBackEventHandler. This custom control hast the following code: --------- protected override void OnInit(EventArgs e) { base.OnInit(e);
0
7601
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
1
7659
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7962
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5496
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5217
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3651
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3631
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1207
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
931
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.