AUTH_USER and roles

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • drengot

    #1

    AUTH_USER and roles

    Hello, I have a little problem. I want write the name of the user
    authenticated with code : <%=Request.Serv erVariables["AUTH_USER"]%>
    bat the page write username and roles (example: Miruss:admin) .
    I want only username. Help me. (sorry for my English!!!)


  • Mark Rae [MVP]

    #2
    Re: AUTH_USER and roles

    "drengot" <russo.domenico @gmail.comwrote in message
    news:6416ed16-aacb-4821-af17-c1534335f1bc@e2 g2000hsh.google groups.com...
    Hello, I have a little problem. I want write the name of the user
    authenticated with code : <%=Request.Serv erVariables["AUTH_USER"]%>
    bat the page write username and roles (example: Miruss:admin) .
    I want only username.
    <%=Request.Serv erVariables["AUTH_USER"].Split(':')[0]%>


    --
    Mark Rae
    ASP.NET MVP


    Comment

    • drengot

      #3
      Re: AUTH_USER and roles

      On 13 Ott, 20:19, "Mark Rae [MVP]" <m...@markNOSPA Mrae.netwrote:
      "drengot" <russo.domen... @gmail.comwrote in message
      >
      news:6416ed16-aacb-4821-af17-c1534335f1bc@e2 g2000hsh.google groups.com...
      >
      Hello, I have a little problem. I want write the name of the user
      authenticated with code : <%=Request.Serv erVariables["AUTH_USER"]%>
      bat the page write username and roles (example:  Miruss:admin) .
      I want only username.
      >
      <%=Request.Serv erVariables["AUTH_USER"].Split(':')[0]%>
      >
      --
      Mark Rae
      ASP.NET MVP


      GRAZIE! Thanks!

      Comment

      Working...