C# .NET - Dirty Properties - Asked By Naresh Kumar on 10-Mar-10 01:51 PM

Can one please explain me about Dirty Properties, how to use those properties. In what type of synarios will go for Dirty properties.

Thanks in advance.
Santhosh N replied to Naresh Kumar on 11-Mar-10 12:16 AM
The Dirty property is used by the SessionStateModule to determine whether the values in an ISessionStateItemCollection implementation have been modified.
check here for more info on this
http://msdn.microsoft.com/en-us/library/system.web.sessionstate.isessionstateitemcollection.dirty.aspx
baimey Joy replied to Santhosh N on 11-Mar-10 03:13 AM

The Dirty property is used by the http://msdn.microsoft.com/en-us/library/system.web.sessionstate.sessionstatemodule.aspx to determine whether the values in an http://msdn.microsoft.com/en-us/library/system.web.sessionstate.isessionstateitemcollection.aspx implementation have been modified.

In implementing the http://msdn.microsoft.com/en-us/library/system.web.sessionstate.isessionstateitemcollection.aspx interface, you should initialize the Dirty property as false and set the http://msdn.microsoft.com/en-us/library/system.web.sessionstate.sessionstateitemcollection.dirty.aspx property to true in the implementations of the http://msdn.microsoft.com/en-us/library/system.web.sessionstate.isessionstateitemcollection.remove.aspx, http://msdn.microsoft.com/en-us/library/system.web.sessionstate.isessionstateitemcollection.removeat.aspx, or http://msdn.microsoft.com/en-us/library/system.web.sessionstate.isessionstateitemcollection.clear.aspx methods.

Oscar Pedroza replied to Naresh Kumar on 11-Mar-10 08:58 AM
Read this post!!!

http://msdn.microsoft.com/en-us/library/microsoft.ink.ink.dirty.aspx
http://www.codeproject.com/Messages/3335023/Re-Extend-BindingSource-with-a-Dirty-property-and-.aspx

Reggards