Namespace User Public Class User Public CID As String = "" Public UserID As String = "" Public UserName As String = "" Public UserFirstName As String = "" Public UserSurname As String = "" Public Sub GetUser(ByVal UID As String) (code here would go to the DB and get the user based in the supplied UID) CID = "123456" UserID = "567890" UserName = "fbloggs" UserFirstName = "Fred" UserSurname = "Bloggs" End Sub End Class End Namespace
Dim UserData As New User.User Session("Test") = UserData.GetUser(UN)
Dim UserData As New User.User dim UserTest as Object UserTest = UserData.GetUser(UN) Session("Test") = UserTest
|Needing an event fired when a row is added on a datagridview||4||36|
|If I develop an ASP.Net application with C# in VS2010 using .Net Framework 4.0, is there a chance it could break recompiling the identical application using VS2015 with .Net Framework 4.0?||3||35|
|I need help displaying images in a ListBox control in my WPF application with VB.Net code-behind.||1||22|
|What namespace do I need to import?||2||13|
Join the community of 500,000 technology professionals and ask your questions.
Connect with top rated Experts
25 Experts available now in Live!