NET 4.0 (Web Forms) A snippet of code that I believe to be relevant below: The problem is that if I want to handle the old values, I can´t: this, evaluates to 0: int old Values Count = e. Count; and this, evaluates to null, even if I alter the value to a new one: string company Name Old = e.
If it's bound via Linq Data Source, Sql Data Source or Object Data Source I suggest you have a look at the Updating Event.
The problem is caused by the fact that only primitive type properties such as string, int, bool are bindable declaratively.
Therefore you cannot provide the color through declarative binding.
In this post I will explain an issue related with Read-only data fields.
Note: I´m not using a datasource component in my application (Sql Data Source, Object Data Source, Entity Data Source, etc.). For more information, see Script Exploits Overview. Check any information that is sent from a client for executable script, SQL statements, or other code before displaying it in your application. NET provides an input request validation feature to block script and HTML in user input.There you have access to the object via the Event Args. New Object or something like that You can cast this property into the corresponding type and make your changes.when opening the form it says "specified cast is not valid".. Please, open a new support ticket and provide a sample, fully runnable project (including DB, if needed) along with a more detailed explanation of the problem and screenshots if possible.I know this is an old question but maybe this will help others that come across this problem like I did.