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. Using Login & LoginView controls

Using Login & LoginView controls

Scheduled Pinned Locked Moved ASP.NET
questioncsharpasp-netdatabasesql-server
5 Posts 2 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.
  • C Offline
    C Offline
    chathu03j
    wrote on last edited by
    #1

    Hi, I have a login control in my ASp.NET application. I use 'Users' table in SQL Server 2005 to authenticate the login. If the username & password are correct, I want to display the username in the loginview control. How can I do that?:confused:

    B 1 Reply Last reply
    0
    • C chathu03j

      Hi, I have a login control in my ASp.NET application. I use 'Users' table in SQL Server 2005 to authenticate the login. If the username & password are correct, I want to display the username in the loginview control. How can I do that?:confused:

      B Offline
      B Offline
      Big Ralph
      wrote on last edited by
      #2

      put in a login view and put the login name in it . if you want to display a message before the username use the format string in the properties window just don't remove the {0} at the end.

      BiG RaLpH

      C 1 Reply Last reply
      0
      • B Big Ralph

        put in a login view and put the login name in it . if you want to display a message before the username use the format string in the properties window just don't remove the {0} at the end.

        BiG RaLpH

        C Offline
        C Offline
        chathu03j
        wrote on last edited by
        #3

        can u pls put down a sample code here? thanks in advance.....

        B 1 Reply Last reply
        0
        • C chathu03j

          can u pls put down a sample code here? thanks in advance.....

          B Offline
          B Offline
          Big Ralph
          wrote on last edited by
          #4

          first did you try to login successfully if not I will tell you what to do

          BiG RaLpH

          C 1 Reply Last reply
          0
          • B Big Ralph

            first did you try to login successfully if not I will tell you what to do

            BiG RaLpH

            C Offline
            C Offline
            chathu03j
            wrote on last edited by
            #5

            Yeah! Please Tell me from scratch how to do it. I tried to use Login1_Authenticated() method to manually check the username & password but it didn't work. Please tell me how to do the login & Display the username in the login view control. Also How to handle LoggedInTeTemplate & AnnonymousTemplate... Thanks

            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