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

ASP.net Panels Yay or Nay

Options
  • 07-05-2009 5:28pm
    #1
    Registered Users 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 Posts: 6,440 ✭✭✭jhegarty


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

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


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


    Set the visible property = loggedinstatus


  • Registered Users Posts: 21,257 ✭✭✭✭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 Posts: 2,931 ✭✭✭Ginger


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


  • Registered Users 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 Posts: 2,931 ✭✭✭Ginger




Advertisement