.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Post New Web Links

Dim imageView As New AlternateView

Posted By:      Posted Date: September 17, 2010    Points: 0   Category :ASP.Net
I want to use AlternateView.CreateAlternateViewFromString to generate an email but I am unsuccessful in doing so without actually getting an error. What is up?Sub Application_Error(ByVal sender As Object, ByVal e As EventArgs) ' Code that runs when an unhandled error occurs Try 'EmbeddedImages() Dim exc As Exception = Server.GetLastError ' Handle HTTP errors (avoid trapping HttpUnhandledException ' which is generated when a non-HTTP exception ' such as the ones generated by buttons 1-3 in ' Default.aspx is not handled at the page level). If (exc.GetType Is GetType(HttpException)) Then ' The Complete Error Handling Example generates ' some errors using URLs with "NoCatch" in them; ' ignore these here to simulate what would happen ' if a global.asax handler were not implemented. If exc.Message.Contains("NoCatch") Then Return End If End If Dim ErrorDescription As String = exc.ToString() 'Dim Event_Log_Name As String = "CMDB ERROR" 'Dim log As EventLog = New EventLog 'log.Source

View Complete Post

More Related Resource Links

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend