Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.
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.
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.
|Returning a value from a class function to a partial view in MVC5||7||64|
|Generate Unique ID in VB.NET||21||135|
|Using the .NET JSON Serializer to create a single string||6||59|
|ASP.NET sqlds databinding error cascading dropdownlists ?||1||17|
Join the community of 500,000 technology professionals and ask your questions.