Currently we are setting up a customs error page in our site. When an error occurs, the user is directed to the custom error page and an email is fired off from global.asax as to what occured with the compiler throug the following code:
Protected Sub Application_Error(ByVal Sender as Object, ByVal e as EventArgs)
Dim ErrorDescription As Exception = Server.GetLastError
Dim url As String
Dim body As String
url = Request.Url.AbsoluteUri
Dim mailMessage As New MailMessage
mailMessage.From = "email@example.com"
mailMessage.To = "firstname.lastname@example.org"
mailMessage.Subject = "ATTENTION: Web Site Error"
mailMessage.BodyFormat = MailFormat.Html
mailMessage.Body = body
mailMessage.Body += url
System.Web.Mail.SmtpMail.SmtpServer = "SMTPServer"
While the user is logged in the site has the username as a session variable. How do I get the global.asax file to pass the username to me through this email?
I've added Session.Item("SSN").ToString and all that does is break and make it so it doesn't send an email at all. Any ideas? Thanks in advance for your assistance.
ASP.Net to Oracle Connectivity
Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers to develop an ASP.NET client…
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform postback. Many times you might need to perform some action on an ASP.NET po…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day.
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…