Re: File locked after save? Won't load in editor...Help...Can't be deleted, changed etc...Thx!

  •  06-11-2004, 4:44 PM

    Re: File locked after save? Won't load in editor...Help...Can't be deleted, changed etc...Thx!

    Hi All,

     
    For the moment I have replaced
     
        Editor1.SaveFile(mydocument); 
     
    with
     
        SaveHtml(mydocument);
     
    And
     
         public void SaveHtml(String FilePath)
         {
               StreamWriter sw = new StreamWriter(Server.MapPath(FilePath));
               sw.Write(Editor1.Text);
               sw.Close();
         }
    Which seems to do the trick!  Thought I'd include it in case it's helpful.
     
    Cheers,
     
    -Colin
     
View Complete Thread