Error handling question for custom Css file

  •  11-09-2006, 6:57 PM

    Error handling question for custom Css file

    Enabling a custom css file for my page is working with:
     
    Editor1.EditorWysiwygModecss = myCssFile.css
     
    but what happens if the file can't be found (is not in the specified location for whatever reason)?
    Right now, it gives an ugly run-time error.
     
    Exception Details: System.IO.FileNotFoundException: Could not find file
     
    I was thinking I could use try-catch logic to trap this exception, but the exception happens in CuteSoft code, not in my own backend C#. 
     
    Is there any way of handling this gracefully?
     
    thx,
    rob
View Complete Thread