Search code examples
asp.netpanelplaceholder

Using Panel or PlaceHolder


What is the difference between <asp:Panel > and <asp:PlaceHolder > in ASP.NET?

When should you use one over the other?


Solution

  • A panel expands to a span (or a div), with it's content within it. A placeholder is just that, a placeholder that's replaced by whatever you put in it.