Using Panel or PlaceHolder

 picture · Jan 27, 2009 · Viewed 122.7k times · Source

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

When should you use one over the other?

Answer

Steven Robbins picture Steven Robbins · Jan 27, 2009

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.