PC Review


Reply
Thread Tools Rate Thread

Dataset dirty

 
 
EDom
Guest
Posts: n/a
 
      9th Aug 2005
Hi,
On my page I have dataset values displayed in text box and datagrid. After I
make any change on the text boxes which do not immediately effect the value
in the dataset. How can I know if the dataset is dirty. I mean how can I
capture if any change was done to the values in the controls on the page to
prevent the user from escaping without saving changes

Regards


 
Reply With Quote
 
 
 
 
=?Utf-8?B?R2F1cmF2?=
Guest
Posts: n/a
 
      9th Aug 2005
When you set the value for textbox using dataset same value will be assign to
on hidden field, using javascript you can validate this thing either using
body unload event or textbox onblur event.
"Note: If you are using asp:textbox control then on code behind file add
onblur attribute to your asp:textbox control"

Regards

"EDom" wrote:

> Hi,
> On my page I have dataset values displayed in text box and datagrid. After I
> make any change on the text boxes which do not immediately effect the value
> in the dataset. How can I know if the dataset is dirty. I mean how can I
> capture if any change was done to the values in the controls on the page to
> prevent the user from escaping without saving changes
>
> Regards
>
>
>

 
Reply With Quote
 
W.G. Ryan MVP
Guest
Posts: n/a
 
      9th Aug 2005
Check out the has changes - or you can loop through the rows of each table
and check their rowstate - HasChanges is a little cleaner and less work ;-)

Debug.Assert(DataSetName.HasChanges, "There aren't any changes");
"EDom" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
> On my page I have dataset values displayed in text box and datagrid. After
> I
> make any change on the text boxes which do not immediately effect the
> value
> in the dataset. How can I know if the dataset is dirty. I mean how can I
> capture if any change was done to the values in the controls on the page
> to
> prevent the user from escaping without saving changes
>
> Regards
>
>



 
Reply With Quote
 
Cor Ligthert [MVP]
Guest
Posts: n/a
 
      10th Aug 2005
EdCom,

In my opinion can you never completly prevent that the user does not a
postback.

Therefore you should not leave it dirty if that is important however update
it at time.

Cor


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dirty, dirty ********* the X-rated picture guide Abarbarian General Discussion 0 25th Mar 2010 10:17 PM
excel sheet dirty read and dirty write? DAXU Microsoft Excel Programming 6 21st Feb 2008 12:03 PM
Is Dirty OR Is Not Dirty? True.Kilted.Scot@gmail.com Microsoft Access Form Coding 11 27th Apr 2006 11:00 AM
detecting that a dirty form is no longer dirty Microsoft Access Form Coding 8 11th Aug 2004 11:41 AM
me.dirty?? Norman Fritag Microsoft Access Form Coding 1 17th Jan 2004 02:11 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:58 AM.