I'm using C# and MVC 3.
I have a page where I can view a grid of errors that ELMAH has logged. I created this instead of using the elmah.axd page because I wanted the page to be styled the same as the rest of my administrative section.
That worked great, but I'd like to do the same thing for the error detail page. I like the way the ELMAH detail page looks, but it's its own page, and I'd like it wrapped in my styles and integrated开发者_如何学C with the rest of my admin section.
Is there a function within ELMAH that will render the HTML for an error like on elmah.axd/detail, so that I can throw it in one of my pages?
I'm not sure if there's a function, but you can always pull the data out of the storage container (xml file, SQL Server, etc) and display it however you like.
精彩评论