MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.
Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.
Session("Emp_UserLogin") = User.Identity.Name Dim myConnectionString As String = "Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\CAC.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True" Using myConnection As New SqlConnection(myConnectionString) Dim myCommand As New SqlCommand() myCommand.Connection = myConnection myCommand.CommandText = "SELECT [EmpID] FROM [Employer] WHERE ([Emp_UserLogin] = '" & Session("Emp_UserLogin") & "')" myConnection.Open() Session("EmpID") = myCommand.ExecuteScalar() End Using