473,320 Members | 2,027 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.

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 1154
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****************@TK2MSFTNGP15.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****************@TK2MSFTNGP15.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: "Consultation"

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***@workshare.com> wrote in message
news:%2****************@TK2MSFTNGP10.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****************@TK2MSFTNGP15.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
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...
3
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...
1
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...
7
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...
9
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...
7
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...
1
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...
0
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...
0
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
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...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
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: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
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: 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.