On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.
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()) %>
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.