|
There are ways to do this, but it is generally not used.
if (! this.IsPostBack)
{
Session ["SavedData"] = "0"
}
//save
void SaveData ()
{
if ((String) Session ["SavedData"] == "1")
{
// Display information, indicating that it has been saved.
return; //
} else
{
// save data
Session ["SavedData"] = "1";
}
} |
|