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. Login Control,Login status problem

Login Control,Login status problem

Scheduled Pinned Locked Moved ASP.NET
csharpasp-nethelptutorialquestion
8 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.
  • J Offline
    J Offline
    Jagz W
    wrote on last edited by
    #1

    Hi all I am using login control of asp.net 2.0 for login. if the login succeeds then menu.aspx page open 1. Now my problem is to check on menu   page is the user logined in or not?? 2. if yes how to logout the user. 3. how to give user access ?? 4. how to hide login view control on master page on access.aspx page thanks in advance jagwinder

    One person's data is another person's program. --J.Walia

    C N 2 Replies Last reply
    0
    • J Jagz W

      Hi all I am using login control of asp.net 2.0 for login. if the login succeeds then menu.aspx page open 1. Now my problem is to check on menu   page is the user logined in or not?? 2. if yes how to logout the user. 3. how to give user access ?? 4. how to hide login view control on master page on access.aspx page thanks in advance jagwinder

      One person's data is another person's program. --J.Walia

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

      Have you read the documentation ? Why is the login control on your master page at all ?

      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.

      N J 2 Replies Last reply
      0
      • J Jagz W

        Hi all I am using login control of asp.net 2.0 for login. if the login succeeds then menu.aspx page open 1. Now my problem is to check on menu   page is the user logined in or not?? 2. if yes how to logout the user. 3. how to give user access ?? 4. how to hide login view control on master page on access.aspx page thanks in advance jagwinder

        One person's data is another person's program. --J.Walia

        N Offline
        N Offline
        nagendrathecoder
        wrote on last edited by
        #3

        J walia wrote:

        1. Now my problem is to check on menu page is the user logined in or not??

        Use Authentication Section in Web.Config. User will only be able to access menu.aspx if he/she is logged in.

        J walia wrote:

        2. if yes how to logout the user.

        Use LoginStatus control, it shows a link which displays "Login" if user is not loggedin and "Logout" if user is loggedin. If used click on "Logout" he will be logged out.

        J walia wrote:

        3. how to give user access ??

        I am not clear, what you want here.

        J walia wrote:

        4. how to hide login view control on master page on access.aspx page

        After successful login, make it invisible and make it visible after logout.

        1 Reply Last reply
        0
        • C Christian Graus

          Have you read the documentation ? Why is the login control on your master page at all ?

          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.

          N Offline
          N Offline
          nagendrathecoder
          wrote on last edited by
          #4

          CG is right, make a separate page for Login Control and definitely read documentation. :)

          1 Reply Last reply
          0
          • C Christian Graus

            Have you read the documentation ? Why is the login control on your master page at all ?

            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.

            J Offline
            J Offline
            Jagz W
            wrote on last edited by
            #5

            i said i put login view on master not login control.... i hope u understand this time

            One person's data is another person's program. --J.Walia

            C 1 Reply Last reply
            0
            • J Jagz W

              i said i put login view on master not login control.... i hope u understand this time

              One person's data is another person's program. --J.Walia

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

              OK - so, you hide it by setting it's visibility. I'm not sure what the issue is.

              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.

              J 1 Reply Last reply
              0
              • C Christian Graus

                OK - so, you hide it by setting it's visibility. I'm not sure what the issue is.

                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.

                J Offline
                J Offline
                Jagz W
                wrote on last edited by
                #7

                how we can hide a control of master page in run time.

                One person's data is another person's program. --J.Walia

                N 1 Reply Last reply
                0
                • J Jagz W

                  how we can hide a control of master page in run time.

                  One person's data is another person's program. --J.Walia

                  N Offline
                  N Offline
                  nagendrathecoder
                  wrote on last edited by
                  #8

                  Use .Master property. You can get MasterPage from this property and then use FindControl() method to cast Login View. Then you can make the control invisible.

                  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