Error handling question for custom Css file

Last post 11-09-2006, 6:57 PM by asiandreads. 0 replies.
Sort Posts: Previous Next
  •  11-09-2006, 6:57 PM 24228

    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 as RSS news feed in XML