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. script menu login [modified]

script menu login [modified]

Scheduled Pinned Locked Moved ASP.NET
tutorialtools
5 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.
  • K Offline
    K Offline
    KhandelwalA
    wrote on last edited by
    #1

    I have created menu from scripting using

    • tags using this code:-

      • Stone Collections
      • New Arrivals
      • Deals
      • Exclusive
      • Clearance Sale
      • Other Gemstones

      now on the click of specific menu item i want to check whether user logged in or not.....how to do this............plz guide me a bit......:)

      modified on Saturday, October 24, 2009 2:47 AM

    S C 2 Replies Last reply
    0
    • K KhandelwalA

      I have created menu from scripting using

      • tags using this code:-

        • Stone Collections
        • New Arrivals
        • Deals
        • Exclusive
        • Clearance Sale
        • Other Gemstones

        now on the click of specific menu item i want to check whether user logged in or not.....how to do this............plz guide me a bit......:)

        modified on Saturday, October 24, 2009 2:47 AM

      S Offline
      S Offline
      sashidhar
      wrote on last edited by
      #2

      if You are using forms authentication use this

      if (Page.User.Identity.IsAuthenticated)
      {
      //YourCode
      }

      or if You are using session check the session If this is not your answer Sorry..! Then be More clear..!

      LatestArticle :Log4Net Why Do Some People Forget To Mark as Answer .If It Helps.

      K 1 Reply Last reply
      0
      • S sashidhar

        if You are using forms authentication use this

        if (Page.User.Identity.IsAuthenticated)
        {
        //YourCode
        }

        or if You are using session check the session If this is not your answer Sorry..! Then be More clear..!

        LatestArticle :Log4Net Why Do Some People Forget To Mark as Answer .If It Helps.

        K Offline
        K Offline
        KhandelwalA
        wrote on last edited by
        #3

        thnks for ur reply bro...............but i think u r not getting my question..........i hav created menu in html using UL tag,LI tag, and ANCHOR tag with scripting...............in this condition how to check .......:)

        S 1 Reply Last reply
        0
        • K KhandelwalA

          thnks for ur reply bro...............but i think u r not getting my question..........i hav created menu in html using UL tag,LI tag, and ANCHOR tag with scripting...............in this condition how to check .......:)

          S Offline
          S Offline
          sashidhar
          wrote on last edited by
          #4

          I have 2 questions for this. 1)Why would you go for html tags rather than using Navigation control in asp.net. 2)How You are checking for particular user whether he is logged in or not..!

          KhandelwalA wrote:

          i hav created menu in html using UL

          Then You are redirecting to particular page .Check the login condition. But IMO Its not good. But If you are using forms authentication .:cool:forms authentication will take care of it..! Thts the advantage of forms authentication.

          LatestArticle :Log4Net Why Do Some People Forget To Mark as Answer .If It Helps.

          1 Reply Last reply
          0
          • K KhandelwalA

            I have created menu from scripting using

            • tags using this code:-

              • Stone Collections
              • New Arrivals
              • Deals
              • Exclusive
              • Clearance Sale
              • Other Gemstones

              now on the click of specific menu item i want to check whether user logged in or not.....how to do this............plz guide me a bit......:)

              modified on Saturday, October 24, 2009 2:47 AM

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

            If your security system works at all, then a pure link is fine because your page itself will check if the user is logged in. On the other hand, a good design would not show options that the user is not allowed to access. Giving people the URLs to your pages that they can't access, is a good first step to their trying to break in.

            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.

            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