开发者

Display ELMAH error detail in my own page?

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜