Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

ASP.net Panels Yay or Nay

  • 07-05-2009 4:28pm
    #1
    Registered Users, Registered Users 2 Posts: 507 ✭✭✭


    Simple question regarding ASP.net panels....

    If I want to display or hide sections of a page depending on whether a user is logged in or not is panels the right way of doing it?

    Or are they going to play havoc with my css layouts?

    Thanks in advance


Comments

  • Registered Users, Registered Users 2 Posts: 6,441 ✭✭✭jhegarty


    You can do the same with <DIV> or even <TD>.

    I use it for hiding items that are not security sensitive.


  • Registered Users, Registered Users 2 Posts: 2,931 ✭✭✭Ginger


    Set the visible property = loggedinstatus


  • Registered Users, Registered Users 2 Posts: 21,263 ✭✭✭✭Eoin


    Would a placeholder not be more suitable? I am pretty sure it can contain controls, but won't generate a wrapper tag, so there should be no problems if it's hidden or visible.


  • Registered Users, Registered Users 2 Posts: 2,931 ✭✭✭Ginger


    A place holder is a better option due it not outputting any other HTML


  • Registered Users, Registered Users 2 Posts: 507 ✭✭✭bigbadcon


    Ginger wrote: »
    A place holder is a better option due it not outputting any other HTML

    Is this an advantage as its less likely to interfere with the other html..

    I used a panel before and found it was over lapping my footer. Cant remember how I fixed it. I probably had a div in the wrong place.

    Im using a template for the site as im not a web developer by trade so my css/html isnt great...

    Thanks for the help guys.Il give that a shot.


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 2,931 ✭✭✭Ginger




Advertisement