Avoiding errors when exporting data

2 posts, 0 answers
  1. -DJ-
    -DJ- avatar
    263 posts
    Member since:
    Oct 2004

    Posted 27 Feb 2012 Link to this post


    Hi guys.

    I sometimes get "invalid xhtml" errors when exporting from radgrid.
    This is actually not my problem per se.

    I am allowing users to export tables from databases, and some of them do contain old and invalid markup. Verifying/editing the markup isn't really an option.

    My problem is, that even after including all code execution within "Try" I'm still unable to catch the errors and letting users know what's wrong. For some reason I still always get the unfriendly (for regular users) .net error page.

    There must be a way to catch the errors right?

    Regards,
    -DJ-
  2. -DJ-
    -DJ- avatar
    263 posts
    Member since:
    Oct 2004

    Posted 27 Feb 2012 Link to this post

    My solution is to loop through all cells and remove any and all markup.

    It would be nice to be able to do:

    Try
    radGrid1.MasterTableView.ExportToPdf()
    Catch
    ' do something
    end try

    But in any case I'm not getting errors now.

    Regards,
    -DJ-
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top