What I need might be explained a bit better by this. Help would be greatly appreciated.
-
Dim getid As New SqlDataSource
-
getid.ConnectionString = ConfigurationManager.ConnectionStrings("MegaMeepConnectionString1").ToString()
-
getid.InsertCommandType = SqlDataSourceCommandType.Text
-
getid.InsertCommand = "SELECT UserID FROM Profile WHERE UserName = @name"
-
getid.InsertParameters.Add("name", Login1.UserName)
-
-
Dim idnumber As Integer = ???
-
I need idnumber to equal the what the getid datasource selected. Is it easy to do?