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
  1. Home
  2. Web Development
  3. ASP.NET
  4. Membership.GetUser() fails in Modal dialog

Membership.GetUser() fails in Modal dialog

Scheduled Pinned Locked Moved ASP.NET
tutorialquestion
3 Posts 3 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.
  • S Offline
    S Offline
    snir_ya
    wrote on last edited by
    #1

    Hi, I'm using window.showModalDialog to open a modal dialog. The modal dialog needs get the current user's name. To do this i use Membership.GetUser().UserName; But when the dialog is posted back Membership.GetUser() return null and i can't get the user's name. Does anybody have a clue how to get the user's name? Thanks.

    S 1 Reply Last reply
    0
    • S snir_ya

      Hi, I'm using window.showModalDialog to open a modal dialog. The modal dialog needs get the current user's name. To do this i use Membership.GetUser().UserName; But when the dialog is posted back Membership.GetUser() return null and i can't get the user's name. Does anybody have a clue how to get the user's name? Thanks.

      S Offline
      S Offline
      Saksida Bojan
      wrote on last edited by
      #2

      I don't know how with the post back. Bat you could try Session or Cookie

      V 1 Reply Last reply
      0
      • S Saksida Bojan

        I don't know how with the post back. Bat you could try Session or Cookie

        V Offline
        V Offline
        VenkataRamana Gali
        wrote on last edited by
        #3

        try with this http://www.codeproject.com/useritems/How_to_NT_User_Name.asp[^]

        Ramana

        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