473,804 Members | 2,673 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

State of a page

Hello,

I have a Web page with several ASPX Textbox. I added to my page a property
which enables me to know the state of this one. The values of this property
are:
Consultation
Modified
New
Deleted

I wish to change the state of my page if the user changes the values of this
ASPX Textbox on the client side. I want to be able to recover the state on
the server side when the user saves the changes. How I do that? Is there a
tutotial on the subject?

Thank you
Marc R.
Nov 19 '05 #1
3 1178
Marc,

One of the ways is to handle the textbox's TextChanged property.

Eliyahu

"Marc Robitaille" <ma************ *@ars-solutions.caa> wrote in message
news:OV******** ********@TK2MSF TNGP15.phx.gbl. ..
Hello,

I have a Web page with several ASPX Textbox. I added to my page a property
which enables me to know the state of this one. The values of this property are:
Consultation
Modified
New
Deleted

I wish to change the state of my page if the user changes the values of this ASPX Textbox on the client side. I want to be able to recover the state on
the server side when the user saves the changes. How I do that? Is there a
tutotial on the subject?

Thank you
Marc R.

Nov 19 '05 #2
Values can be remember in Session, Viewstate or Cookies.

In this case, when the user posts back to the server (clicks save), you'll
view the values of the TextBox and change the Property of the page
accordingly.
This can then be saved using one of the methods i mentioned above.
You can then call this in subsequent posts to view the state of the page
you've set

Is that what you looking for?
"Marc Robitaille" <ma************ *@ars-solutions.caa> wrote in message
news:OV******** ********@TK2MSF TNGP15.phx.gbl. ..
Hello,

I have a Web page with several ASPX Textbox. I added to my page a property
which enables me to know the state of this one. The values of this
property are:
Consultation
Modified
New
Deleted

I wish to change the state of my page if the user changes the values of
this ASPX Textbox on the client side. I want to be able to recover the
state on the server side when the user saves the changes. How I do that?
Is there a tutotial on the subject?

Thank you
Marc R.

Nov 19 '05 #3
Hey, i tried to reply to your mail, but it bounced back.

anyway, here's what i said:

Yes, that would work.

But I think that should be controlled by the button the user presses.

So if they were to press Save, then you would automatically save the data.

What I thought you were trying to do, is keep a state variable for the page
that could be remembered during post back.

So, say the state has the initial state: "Consultati on"

And the User clicks update, you could change that state to "Modified"

But if you are trying to work out if the user has changed anything, i.e.
whether you need to save the data, you could:

a) Do as you said:

When you populate the textboxes, save another copy of those values that the
user cannot edit. (in session, viewstate or even hiddens on the page)

When the user clicks a button, check if anything has changed, and then
you'll know what to update.

b) Push this onto the user:

Why not give the user an update button, so if they were to make any changes,
they can click update, and you can save the new data

Is that clearer?

"Grant Merwitz" <gr***@workshar e.com> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
Values can be remember in Session, Viewstate or Cookies.

In this case, when the user posts back to the server (clicks save), you'll
view the values of the TextBox and change the Property of the page
accordingly.
This can then be saved using one of the methods i mentioned above.
You can then call this in subsequent posts to view the state of the page
you've set

Is that what you looking for?
"Marc Robitaille" <ma************ *@ars-solutions.caa> wrote in message
news:OV******** ********@TK2MSF TNGP15.phx.gbl. ..
Hello,

I have a Web page with several ASPX Textbox. I added to my page a
property which enables me to know the state of this one. The values of
this property are:
Consultation
Modified
New
Deleted

I wish to change the state of my page if the user changes the values of
this ASPX Textbox on the client side. I want to be able to recover the
state on the server side when the user saves the changes. How I do that?
Is there a tutotial on the subject?

Thank you
Marc R.


Nov 19 '05 #4

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

Similar topics

2
783
by: Brad | last post by:
I have an intranet app that has just started sporadically getting the following error "The viewstate is invalid for this page and might be corrupted." By sproadic I mean 3-4 times during the past two days out of 100's of hits. The error just started yesterday and this app has been running for quite some time without this error and has not been updated just before or after the error started. Reseaching this error I've checked the...
3
2127
by: Philip Tripp | last post by:
I've read numerous sources stating that view state can be disabled per control, and per page, but can't seem to keep web form controls from remembering their state on a postback. I'm using VS.Net 2002, .Net Framework 1.0 SP2. I create a new project, and add a new web form to the project. On the page properties, I set EnableViewState to False and verify that the @ Page directive has "enableViewState=false" in it. I then add a TextBox...
1
2417
by: Johan Nedin | last post by:
Hello! I have a problem with SQLSession state on my ASP.NET pages. SQLSession state behaves very different from InProcess session state, which I think is very bad. I can understand some of the differences, e.g that every object you store in SQLSession state have to be serializable, but other differences are very unfortunate.
7
2046
by: Tom wilson | last post by:
I have created a very simple example that doesn't work. Form1 contains a textbox and a button: Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Response.Redirect("login.aspx") End Sub Very simple. Forget what login.aspx does, it's just somewhere to redirect to.
9
5319
by: McGeeky | last post by:
Is there a way to get a user control to remember its state across pages? I have a standard page layout I use with a header and footer as user controls. Each page uses the same layout by means of copy paste (I hear this will improve in ASP.Net 2 via master pages). When I navigate from one page to the next the header and footer user controls lose their state because they are effectively different instances of the user control. Is there...
7
2115
by: Shadow Lynx | last post by:
I realize that his question has been asked, in many other forms, many times in this group. Even so, my tired eyes have not yet found a sufficient answer, so I've decided to "reask" it even though I'm sure this will offend some of the more seasoned verterans of this board. The Players: Consider a simple web form, which I'll call Page A, that has a couple of controls on it. It's not important what they are, only that they're static...
1
1827
by: Jeff | last post by:
I need to place a "Previous Page" link on every page within my site and a simple javascript:history.back() will not work because I need it to capture the state of the page when I left it. For example, if I have a page with some date controls so I can choose a date range and postback the page. It then displays results based on that date range. When I leave the page for another page, I would like to have the Previous Page link take them...
0
2217
by: =?Utf-8?B?SkhhbGV5?= | last post by:
Our system is: IIS Server: dual Intel Xeon 2.80 GHz, 4 GB Ram Windows Server 2003 SP2 IIS 6.0 SQL Server: dual Intel Xeon 2.80 GHz, 4 GB Ram (separate server) Windows Server 2003 SP2 SQL Server 2000 We are having some problems with a website we are developing, and had some
0
2101
by: Homer J. Simpson | last post by:
A few weeks ago I asked for suggestions on how to persist a tree's node state to cookies, without causing postbacks on each click in the tree. I had a single .aspx file, with a row of buttons on top of the screen, and a tree control below (with EnableViewState set to true). I let the user expand/collapse away to his hearts content without needless roundtrips. When the user clicked on a button at the top, I'd reload the page, check...
0
9577
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10569
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10325
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10315
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
9140
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7615
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6847
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5519
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5651
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.