Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8155603
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T16:43:05+00:00 2026-06-06T16:43:05+00:00

I still new using Asp.net with vb.net Protected Sub login_Click(ByVal sender As Object, ByVal

  • 0

I still new using Asp.net with vb.net

Protected Sub login_Click(ByVal sender As Object, ByVal e As EventArgs) Handles login.Click
        Dim querystrings As String = "Select Email, Password ,Roles, Nama_Depan, Nama_Belakang from Employee where Email = @email;"
        Dim con As New SqlConnection(connected)
        Dim cmd As New SqlCommand(querystrings, con)
        Dim myreader As SqlDataReader

   Session ("Namadepan")= cmd.Parameters("Nama_Depan")

end sub

I wanted to store Roles, Nama_Depan, Nama_Belakang with session but i don’t know how

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T16:43:07+00:00Added an answer on June 6, 2026 at 4:43 pm

    Make a class that handles this logic so Session() and Session.Add() isn’t scattered throughout your website.

    Public Shared ReadOnly Property Instance() As ClassStoredInSession
        Get
            'store the object in session if it is not already stored
            If Session("example") Is Nothing Then
                Session("example") = New ClassStoredInSession()
            End If
    
            'return the object stored in session
            Return DirectCast(Session("example"), ClassStoredInSession)
        End Get
    End Property
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm still new with facebook C# sdk (ASP.net) I'm using Facebook C# SDK v5
We are creating a new site using ASP.NET membership provider for user registration and
I am still new to asp.net and I'm having a problem that I just
I am currently develope something using asp.net MVC, im still quite not experience with
am new to StackOverflow.. I am developing a website which requires extensive ORM...using asp.net
I'm still new to ASP.NET MVC and I'm struggling a little with the routing.
I am creating a new web application using ASP.NET MVC3 Razor and HTML 5.
I'm using asp.net 4 routing in one of our new product and it works
I'm using the ASP.Net Login control to login a web application. When the user
I am tring to login using asp.net authentication in nokia e5-00 device. The login

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.