Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. Displaying currentuser emailId in the Masterpage

Displaying currentuser emailId in the Masterpage

Scheduled Pinned Locked Moved ASP.NET
helpquestion
6 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    getaccessyr
    wrote on last edited by
    #1

    Hi All, I want to display,currentuser's emailID in the masterpage header,as i tried with the sessions after logged in it is not showing the emailid. Can anyone help me? Thankyou IN advance

    A 1 Reply Last reply
    0
    • G getaccessyr

      Hi All, I want to display,currentuser's emailID in the masterpage header,as i tried with the sessions after logged in it is not showing the emailid. Can anyone help me? Thankyou IN advance

      A Offline
      A Offline
      Abhijit Jana
      wrote on last edited by
      #2

      yamunarani wrote:

      I want to display,currentuser's emailID in the masterpage header,as i tried with the sessions after logged in it is not showing the emailid.

      Store Email ID in Session Variable after loging as,

      Session["EmailID"]=strEmailID

      Display it on Master Page,

      lblUserEmail= Session["EmailID"].ToString();

      Hope this will help you :-D

      Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you. View My Latest Article

      A 1 Reply Last reply
      0
      • A Abhijit Jana

        yamunarani wrote:

        I want to display,currentuser's emailID in the masterpage header,as i tried with the sessions after logged in it is not showing the emailid.

        Store Email ID in Session Variable after loging as,

        Session["EmailID"]=strEmailID

        Display it on Master Page,

        lblUserEmail= Session["EmailID"].ToString();

        Hope this will help you :-D

        Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you. View My Latest Article

        A Offline
        A Offline
        AprNgp
        wrote on last edited by
        #3

        Abhijit Jana wrote:

        Store Email ID in Session Variable

        how much memory can be used from session memory ? will this reduce the performance, if the number of online users is very high ??

        Apurv “Never trust a computer you can’t throw out a window.” (Steve Wozniak) “There are only two industries that refer to their customers as ‘users’.” (Edward Tufte)

        C A 2 Replies Last reply
        0
        • A AprNgp

          Abhijit Jana wrote:

          Store Email ID in Session Variable

          how much memory can be used from session memory ? will this reduce the performance, if the number of online users is very high ??

          Apurv “Never trust a computer you can’t throw out a window.” (Steve Wozniak) “There are only two industries that refer to their customers as ‘users’.” (Edward Tufte)

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          Think about this for a moment. How big is the data you want to store. How long can an email address be ? How many users do you expect to have ? Are you running it on a Commodore 64 ? Session data should be used sparingly, but storing some email addresses is not going to crash it. It's more when people fill the session with data sets, etc, and never empty it, that it can cause issues. You need to at least store something in the session to note the user that is logged in. If you store their user id, you can elect to read any other data from the DB, although this is surely going to 'cost' more to retrieve an email address every time, than if you store it in the session

          Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

          A 1 Reply Last reply
          0
          • C Christian Graus

            Think about this for a moment. How big is the data you want to store. How long can an email address be ? How many users do you expect to have ? Are you running it on a Commodore 64 ? Session data should be used sparingly, but storing some email addresses is not going to crash it. It's more when people fill the session with data sets, etc, and never empty it, that it can cause issues. You need to at least store something in the session to note the user that is logged in. If you store their user id, you can elect to read any other data from the DB, although this is surely going to 'cost' more to retrieve an email address every time, than if you store it in the session

            Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

            A Offline
            A Offline
            AprNgp
            wrote on last edited by
            #5

            Thank you very much .... I got the point ....

            Apurv “Never trust a computer you can’t throw out a window.” (Steve Wozniak) “There are only two industries that refer to their customers as ‘users’.” (Edward Tufte)

            1 Reply Last reply
            0
            • A AprNgp

              Abhijit Jana wrote:

              Store Email ID in Session Variable

              how much memory can be used from session memory ? will this reduce the performance, if the number of online users is very high ??

              Apurv “Never trust a computer you can’t throw out a window.” (Steve Wozniak) “There are only two industries that refer to their customers as ‘users’.” (Edward Tufte)

              A Offline
              A Offline
              Abhijit Jana
              wrote on last edited by
              #6

              apr~asp wrote:

              how much memory can be used from session memory ? will this reduce the performance, if the number of online users is very high ??

              No, Storing User ID, Email ID does not reduce the permanence at all. You have to rethink your design when you want to store DataTable, DataSet in Session, It can cause performance issue.

              Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you. View My Latest Article

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups