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

Formview Control - Identifying if a change has been made

I need to be able to determine if a user has actually made a change
when on either the edititem or insertitem templates of a formview
control.

Is there a standard way of handling this to prevent the user from
moving off the page.

I haven't seen this topic mentioned in any books I've looked at but it
must be something that everybody has to tackle in a production system.

Feb 16 '06 #1
2 1241
this can only be done with client script. catch the page unload event. the
unload fires whenever the a new page is loaded, even the postback for the
page, so you will need some logic added in the postback routine to notify
the unload routine, that it does not need to do any checks.

-- bruce (sqlwork.com)

"Neil" <ne*********@synapse-partnership.com> wrote in message
news:11*********************@g43g2000cwa.googlegro ups.com...
I need to be able to determine if a user has actually made a change
when on either the edititem or insertitem templates of a formview
control.

Is there a standard way of handling this to prevent the user from
moving off the page.

I haven't seen this topic mentioned in any books I've looked at but it
must be something that everybody has to tackle in a production system.

Feb 16 '06 #2
Thanks Bruce

I have a menu on a master page and my formview is on a content page.

If the user selects a different page off the menu the unload event
wouldn't be fired on the original page would it as it isn't being
posted back at that stage?

I have to admit to being rather confused about this area. It was
something that I didn't really need to think about in VB.

Do you have a reference to some sample code you can point me to so i
can get my head round this?

Feb 16 '06 #3

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

Similar topics

0
by: Neil | last post by:
If a user has gone into edit mode on a Formview control how do you determine in the itemupdating event handler if the user has changed any data?
2
by: P. Yanzick | last post by:
Hello, I am creating an edit template for a FormView control, changing one of the textboxes to a dropdown box. The dropdown will be populated from a simple table with the primary key, and a...
1
by: Martin | last post by:
Hi, I have a FormView control with a MultiView control within it's EditItemTemplate (because using a Wizard doesn't maintain two way data binding - MS confirmed bug). Any how, I have the...
17
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How do I get the value of a form control? -----------------------------------------------------------------------...
3
by: YMPN | last post by:
Hi Everyone, I'm deen from Riyadh. Please do help me with some problem i have. I have this formview control setup to recieved inputs from user (textbox, dropdownlist, others). After...
0
by: hardieca | last post by:
Hi, My formview or gridview control stops updating or deleting a record once the record has a null value. I have table tblTest with the following pkID int NOT NULL **IDENTITY COLUMN**...
2
by: J055 | last post by:
Hi The client script does not get created when calling the Focus method on the TextBox. No errors occur. What am I doing wrong please? protected void fv_Load(object sender, EventArgs e) {...
1
by: SteveT | last post by:
Before I pull out what little hair I have left, I'm swallowing my pride and asking the Oracles of .Net: I'm trying to set a property in a dropdown list control in a FormView, based on a session...
3
by: KaOne | last post by:
Hi All, excuse me in advance for my not very perfect english. I need some help about a problem with a FormView bounded to an ObjectDataSource. In practise I have an ObjectDataSource that uses some...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
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...
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: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
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: 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

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.