473,386 Members | 1,827 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.

Custom page persitence



Is there a way to arbitrarily persist and restore a page state? For
instance: I'm half way through filling out a page and I come accross a field
that I don't know which value should be placed in it. What I'd like to do is
have a lookup button. In the code for the button click event, I'd like to
persist all the information on the form (say to a database or file), redirect
to another page passing a persistence ticket.

The "called page" would note which page called it, allow me to lookup the
value I'm interested in and "return" to the previous page, noting that I'm
returning.

The original page would at some point early in page life cycle determine
that it had been "returned" to, and set the page state to the earlier
persisted version, possibly adding in "returned" information (assuming the
lookup wasn't canceled) and then redisplaying the page focusing the next
control (or if canceled the current control).

Could be there's a better way to do this or something similar in .net and
I'd love pointers to either the problem above or a different approach that's
maybe more .net ish.

Pop-ups I'd prefer not to do.
Feb 27 '06 #1
2 1039
Larry,

A different way without popups would be to store the information in
viewstate (the client computer) and use panels for the lookup. You could put
your main form being filled out into a panel and then swap out the lookup
panel(s) and the form panel as needed with the panel's Visible property.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Larry Charlton" <La***********@discussions.microsoft.com> wrote in message
news:7F**********************************@microsof t.com...


Is there a way to arbitrarily persist and restore a page state? For
instance: I'm half way through filling out a page and I come accross a
field
that I don't know which value should be placed in it. What I'd like to do
is
have a lookup button. In the code for the button click event, I'd like to
persist all the information on the form (say to a database or file),
redirect
to another page passing a persistence ticket.

The "called page" would note which page called it, allow me to lookup the
value I'm interested in and "return" to the previous page, noting that I'm
returning.

The original page would at some point early in page life cycle determine
that it had been "returned" to, and set the page state to the earlier
persisted version, possibly adding in "returned" information (assuming the
lookup wasn't canceled) and then redisplaying the page focusing the next
control (or if canceled the current control).

Could be there's a better way to do this or something similar in .net and
I'd love pointers to either the problem above or a different approach
that's
maybe more .net ish.

Pop-ups I'd prefer not to do.

Feb 27 '06 #2
Thanks, I'll look at that. Since I want to reuse the lookups I'll take a
peek at using user controls for the functionality but that just might do it!

Larry
When you're considering all the ways to skin a cat, don't forget how many
cats there are to skin.

Feb 27 '06 #3

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

Similar topics

1
by: MacDermott | last post by:
I created a report to print labels, and it created a custom page size for the report. When I opened the properties of the printer driver I could see it listed - as Custom. Then I had to change...
6
by: Scott Zabolotzky | last post by:
I'm trying to pass a custom object back and forth between forms. This custom object is pulled into the app using an external reference to an assembly DLL that was given to me by a co-worker. A...
6
by: John Lau | last post by:
Hi, I am looking at the MS KB Article 306355: HOW TO: Create Custom Error Reporting Pages in ASP.NET by Using Visual C# .NET This article describes how to redirect errors to a custom html...
6
by: Nick Horrocks | last post by:
I have set up a custom error page for 404 errors. However the HTTP status code returned is 302 followed by 200, this causes search engines not to remove old pages from their index. How can I...
8
by: bryan | last post by:
I've got a custom HttpHandler to process all requests for a given extension. It gets invoked OK, but if I try to do a Server.Transfer I get an HttpException. A Response.Redirect works, but I really...
1
by: Mutley | last post by:
Hi, I have written an HttpHandler to process page requests for a custom file extension. The handler gets called as expected and after searching the web for examples I have used a method called...
4
by: Suresh | last post by:
Is there any way to access the custom properties of a master page from the aspx form? I know the custom properties of a master page can be accessed from the aspx.cs partial class by specifying...
2
by: Michal Valent | last post by:
I would like to fire some custom server control event before Page_Load event like this (from the trace of an aspx page) : Trace Information Category Message From First(s) From Last(s) aspx.page...
4
by: =?Utf-8?B?UmljaEI=?= | last post by:
I am trying to create a project using the ASP.NET AJAX accordion control. I would like to dynamically add panes to the control with a form template added when the pane is added. I have tried...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...

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.