Hi,
I am using enums in my project to save the mode of the grid. Code snippet is as follows:
public enum SheetModes
{
View = 1,
Add ,
Edit
}
SheetModes Mode;
There are 3 buttons on the page namely, Create, Load, Edit and Save
In Create Button click, Mode= SheetModes.Add;
In Load Button Click, Mode= SheetModes.View;
In edit button click, I am setting the Mode to SheetModes.Edit;
in Save button click, I need to check the mode and execute insert or update functions. But when ever I set the value and load the page, the value to the Mode is lost, its set to 0 and am unable to check the Mode in the Save Button Click.
I am not sure whe ...
Go to the complete details ...
Found interesting? Add this to: