top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

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

+4 votes
821 views

What is the difference between <asp:Panel > and <asp:PlaceHolder > in ASP.NET? When should you use one over the other?

posted May 26, 2014 by Muskan

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote
 
Best answer

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.

Source: http://stackoverflow.com/questions/483352/using-panel-or-placeholder

answer May 27, 2014 by Salil Agrawal
...