473,320 Members | 1,724 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,320 software developers and data experts.

Retaining values in ASP.Net webform.

Hello all -

I can't seem to find what could be causing this issue so I wanted to appeal to the .NET gurus out there. When I have users input values into Page 1 and submit it, I want the ability so that the user can navigate back from Page 2 (through clicking the "Back" button) and the values they just put in (text boxes) or selected (listboxes) are retained. Right now, though, the page is completely cleaned to blank and the user ends up having to re-input the data. Is there a property that I'm not aware of in .NET that retains values. A few people and research has suggested something about AutoNavigation property set to true but wasn't sure if it was related

Thanks
Mark
Nov 18 '05 #1
2 1526
Hi,

this would need keeping the values on Session, database or by utilizing
custom ViewState restoring that occurs after redirect (normally is cleared
as you saw). This article tells about the ViewState restoring:

ViewState: Restore after Redirect
http://authors.aspalliance.com/PaulW...rticles/?id=10

--
Teemu Keiski
MCP, Microsoft MVP (ASP.NET), AspInsiders member
ASP.NET Forum Moderator, AspAlliance Columnist

"Mark" <an*******@discussions.microsoft.com> wrote in message
news:50**********************************@microsof t.com...
Hello all -

I can't seem to find what could be causing this issue so I wanted to appeal
to the .NET gurus out there. When I have users input values into Page 1 and
submit it, I want the ability so that the user can navigate back from Page 2
(through clicking the "Back" button) and the values they just put in (text
boxes) or selected (listboxes) are retained. Right now, though, the page is
completely cleaned to blank and the user ends up having to re-input the
data. Is there a property that I'm not aware of in .NET that retains
values. A few people and research has suggested something about
AutoNavigation property set to true but wasn't sure if it was related.

Thanks,
Mark
Nov 18 '05 #2
Teemu

I appreciate your response. I should added this to my original but what makes this perplexing is that even though the example makes sense, I have other pages I created where when I do hit the 'Back' button, the data is retained yet the code is nearly identical from what I can see between ones that do and ones that don't retain values in their pages. I don't have ViewState anywhere set in the pages that do retain the values as well

Any ideas from anyone are appreciated at this point

Thanks
Mar

----- Teemu Keiski wrote: ----

Hi

this would need keeping the values on Session, database or by utilizing
custom ViewState restoring that occurs after redirect (normally is cleared
as you saw). This article tells about the ViewState restoring

ViewState: Restore after Redirec
http://authors.aspalliance.com/PaulW...Articles/?id=1

--
Teemu Keisk
MCP, Microsoft MVP (ASP.NET), AspInsiders membe
ASP.NET Forum Moderator, AspAlliance Columnis

"Mark" <an*******@discussions.microsoft.com> wrote in message
news:50**********************************@microsof t.com..
Hello all

I can't seem to find what could be causing this issue so I wanted to appeal
to the .NET gurus out there. When I have users input values into Page 1 and
submit it, I want the ability so that the user can navigate back from Page 2
(through clicking the "Back" button) and the values they just put in (text
boxes) or selected (listboxes) are retained. Right now, though, the page is
completely cleaned to blank and the user ends up having to re-input the
data. Is there a property that I'm not aware of in .NET that retains
values. A few people and research has suggested something about
AutoNavigation property set to true but wasn't sure if it was related

Thanks
Mark

Nov 18 '05 #3

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

Similar topics

19
by: jeff | last post by:
how do you convert form byte to Int32 while retaining the binary value of the byte array
0
by: Earl Teigrob | last post by:
I have a page that reads values from an XML file to display to the user. The page also has a control panel that allows administrators to update the XML file with new values. When an administrator...
3
by: Netserver | last post by:
Hi have a question hope there is a simple answer. I want to enter data in to 2 arrays from several webforms in project and be able to recall that data from any of the webforms, other then using a...
2
by: cFleury | last post by:
This system works in a intranet w/ some 200 stations and this particular form is retaining its values among different stations...like if I enter some values in the form on station 1 walk to station...
2
by: cFleury | last post by:
The forms in my application are retaining the values objects have (text box, datagrid, public vars, etc…) among different computers in the network, for example if you as result of entering a...
5
by: jung_h_park | last post by:
From: jung_h_park@yahoo.com Newsgroups: microsoft.public.dotnet.framework.aspnet Subject: Dropdown List not retaining its SelectedValue Date: Mon, 26 Jun 2006 21:02:57 -0700 Hello, My...
4
by: RipperT | last post by:
College newbie here (Instructor MIA). I have instructions to pass variable values from one web page to another like this (VS2005): 1. Declare and create the properties on the first page (source...
3
by: =?Utf-8?B?ZGVuIDIwMDU=?= | last post by:
Hi, Trouble in retaining values of dropdownlist, textboxes, and other controls when dropdownlist selectedindexchanged event is triggered, the controls are inside a user control and this user...
0
JAMBAI
by: JAMBAI | last post by:
I have created a ASP.NET application and created two forms (Webform1.aspx & Webform2.aspx). I am displaying the Webform2.aspx based on the Webform1.aspx input, For example if the user didn't...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.