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. ASP.net master page redirect

ASP.net master page redirect

Scheduled Pinned Locked Moved ASP.NET
csharpc++asp-netdata-structures
3 Posts 3 Posters 4 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.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    Hi all Currently i am in A.Aspx and i have 2 other pages lets say B.aspx and C.aspx and all these page have on master page say Master.aspx. one user log in into web site and he is currently on A.aspx page and he can see only A.aspx and B.aspx can not see C.aspx but once he change the address in Browser to C.aspx he was able to go on that page i have one list which contain permission but when i am checking this thing in Master Page and redirecting him to his default page. it is giving exception Unable to evaluate expression because the code is optimized or native frame is on top of the stack is it possible to redirect page to other page on master page load event because master page is loaded yet. thanks,

    D 1 Reply Last reply
    0
    • L Lost User

      Hi all Currently i am in A.Aspx and i have 2 other pages lets say B.aspx and C.aspx and all these page have on master page say Master.aspx. one user log in into web site and he is currently on A.aspx page and he can see only A.aspx and B.aspx can not see C.aspx but once he change the address in Browser to C.aspx he was able to go on that page i have one list which contain permission but when i am checking this thing in Master Page and redirecting him to his default page. it is giving exception Unable to evaluate expression because the code is optimized or native frame is on top of the stack is it possible to redirect page to other page on master page load event because master page is loaded yet. thanks,

      D Offline
      D Offline
      Dinesh Mani
      wrote on last edited by
      #2

      I would rather put the Authorization code in a base class and inherit in all the other classes. Doing Authorization from Master pages is not a good practice.

      R 1 Reply Last reply
      0
      • D Dinesh Mani

        I would rather put the Authorization code in a base class and inherit in all the other classes. Doing Authorization from Master pages is not a good practice.

        R Offline
        R Offline
        raju melveetilpurayil
        wrote on last edited by
        #3

        yes, i am also support Dinesh. put your Authorization code in derived pages of MasterPage. MasterPage Mainly Used to reduce Design Works.

        Raju.M

        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