Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.
One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.
Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.
Public Function UserDetails(ByVal UserID As String) As String Dim FirstName As String = "" Dim strConnection As String = ConfigurationManager.ConnectionStrings("aspnet-WebSite1-13bb7ef4-4736-49de-9eb7-9b2d7393640dConnectionString1").ConnectionString Dim SQL As String = "SELECT dbo.AspNetUsers.FirstName FROM dbo.AspNetUsers WHERE ([Id] = @NewUserID)" Using conn As New SqlConnection(strConnection) Dim cmd As New SqlCommand(SQL, conn) cmd.Parameters.AddWithValue("@NewUserID", FirstName) conn.Open() FirstName = Convert.ToString(cmd.ExecuteScalar()) End Using Return FirstName End Function
<%: UserDetails(User.Identity.GetUserId()) %>