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. navigation between secure pages

navigation between secure pages

Scheduled Pinned Locked Moved ASP.NET
helptutorial
10 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.
  • M Offline
    M Offline
    MalarGayu
    wrote on last edited by
    #1

    hi friends i have a secure page(a page which is viewable after i login say page1.aspx) in page1.aspx i have a imagebutton. On the click of this image button i need to navigate to another page say page2.aspx which is also a secure page(this page is also viewed after i login but i have already loged in and viewed page1.aspx) so how to doit so plz do help me in this issue K.Gayathri

    N 1 Reply Last reply
    0
    • M MalarGayu

      hi friends i have a secure page(a page which is viewable after i login say page1.aspx) in page1.aspx i have a imagebutton. On the click of this image button i need to navigate to another page say page2.aspx which is also a secure page(this page is also viewed after i login but i have already loged in and viewed page1.aspx) so how to doit so plz do help me in this issue K.Gayathri

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      This is no different than navigating to any other page, secured or unsecured


      No comment

      M 1 Reply Last reply
      0
      • N Not Active

        This is no different than navigating to any other page, secured or unsecured


        No comment

        M Offline
        M Offline
        MalarGayu
        wrote on last edited by
        #3

        hi i am not able to navigate between secure pages(all kept inside a folder by name secure) as i have set in the web.config file inside the secure folder as follows: i have set so because no one should access these pages without logging in......plzzzzzzzzzzz do help me K.Gayathri

        N 1 Reply Last reply
        0
        • M MalarGayu

          hi i am not able to navigate between secure pages(all kept inside a folder by name secure) as i have set in the web.config file inside the secure folder as follows: i have set so because no one should access these pages without logging in......plzzzzzzzzzzz do help me K.Gayathri

          N Offline
          N Offline
          Not Active
          wrote on last edited by
          #4

          If the user has already logged in then they have been authenticated and have access to any of the pages. How are trying to navigate?


          No comment

          M 1 Reply Last reply
          0
          • N Not Active

            If the user has already logged in then they have been authenticated and have access to any of the pages. How are trying to navigate?


            No comment

            M Offline
            M Offline
            MalarGayu
            wrote on last edited by
            #5

            hi thanks for the reply yes if the user is logged in he should be able to access the other secure pages now but since i have given after login successfully the user enter a secure page say by using the code Server.Transfer("~/Secure/Dashboard.aspx"); so now if i am in dashboard.aspx i have some more secure pages in the same secure folder which is accessible once the user is logged in and is in dashboard.aspx...so how to do it it is redirecting to the login page itself K.Gayathri

            N 1 Reply Last reply
            0
            • M MalarGayu

              hi thanks for the reply yes if the user is logged in he should be able to access the other secure pages now but since i have given after login successfully the user enter a secure page say by using the code Server.Transfer("~/Secure/Dashboard.aspx"); so now if i am in dashboard.aspx i have some more secure pages in the same secure folder which is accessible once the user is logged in and is in dashboard.aspx...so how to do it it is redirecting to the login page itself K.Gayathri

              N Offline
              N Offline
              Not Active
              wrote on last edited by
              #6

              Try reviewing this ASP.NET authentication and authorization[^]


              No comment

              M 1 Reply Last reply
              0
              • N Not Active

                Try reviewing this ASP.NET authentication and authorization[^]


                No comment

                M Offline
                M Offline
                MalarGayu
                wrote on last edited by
                #7

                hi friend i am using form authentication using sqlserver as my database and not web.config so that part i am ok as i can compare the values from the database using my own code and getting redirection to a secure page but my problem now is that from that secure page how to move to other pages which are secure K.Gayathri

                N S 2 Replies Last reply
                0
                • M MalarGayu

                  hi friend i am using form authentication using sqlserver as my database and not web.config so that part i am ok as i can compare the values from the database using my own code and getting redirection to a secure page but my problem now is that from that secure page how to move to other pages which are secure K.Gayathri

                  N Offline
                  N Offline
                  Not Active
                  wrote on last edited by
                  #8

                  Not using web.config? This makes no sense at since you have shown the web.config you are using. You can't use form auth without it. Good luck.


                  No comment

                  M 1 Reply Last reply
                  0
                  • N Not Active

                    Not using web.config? This makes no sense at since you have shown the web.config you are using. You can't use form auth without it. Good luck.


                    No comment

                    M Offline
                    M Offline
                    MalarGayu
                    wrote on last edited by
                    #9

                    hi friend i am using web.config file only but i am comparing the values from the database and i am not using credentials ok....you got it now what i say so after i validate from the database i enter a secured page and from that secured page i am not able to navigate to another secured page..... hope you got me now K.Gayathri

                    1 Reply Last reply
                    0
                    • M MalarGayu

                      hi friend i am using form authentication using sqlserver as my database and not web.config so that part i am ok as i can compare the values from the database using my own code and getting redirection to a secure page but my problem now is that from that secure page how to move to other pages which are secure K.Gayathri

                      S Offline
                      S Offline
                      s_magus
                      wrote on last edited by
                      #10

                      MalarGayu wrote:

                      i am using form authentication using sqlserver as my database and not web.config
                       
                      so that part i am ok as i can compare the values from the database using my own code and getting redirection to a secure page

                      Your problem probable exists in how you are doing your authorization. It sounds like you are not using the default log-in and membership provider in asp.net by your statement above. Show us the code that you are using to log someone into your site.

                      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