Project.IsDirty Property

Last post 05-09-2005, 11:48 AM by cutechat. 1 replies.
Sort Posts: Previous Next
  •  03-28-2005, 8:14 PM 5045

    Project.IsDirty Property

    Do you have Project.IsDirty Property can detect a value indicating whether the contents of this project have been modified?

    I am create a close button under cute editor, if user want to close page , change will be detected and display save prompt. like "Would you like to save your changes?"
     
    thanks
    sunny
  •  05-09-2005, 11:48 AM 6527 in reply to 5045

    Re: Project.IsDirty Property

    Hello
     
    You could hook up the TextChanged event to detect if the content is changed .
     
    for example:
     
    Editor1_TextChanged(..)
    {
        ViewState["valuechanged"]=true;
    }
     
    CloseButton_Click(...)
    {
        if(true.Equals(ViewState["valuechanged"]))
        {
        //show alert message
        }
    }
     
    Regards , Terry .
     
View as RSS news feed in XML