Home / ASP.NET Wiki / HTML / Web Controls / PlaceHolder

PlaceHolder

 Rate It (0)

The PlaceHolder control can be used as a container control within a document to dynamically load other controls. The PlaceHolder control has no HTML-based output and is used only to mark a spot for other controls that can be added to the Controls collection of the PlaceHolder during page execution.

Revision number 2, Monday, February 25, 2008 12:03:49 AM by mbanavige

Comments

Some example code would be nice :)

hi,i'm having index.aspx page,where i use placeholder for contents.can any give a sample for the page(test.aspx) which should shown in that placeHolder.

Related Articles

Page.ParseControl

If you want to parse a html string at runtime with asp.net control in it you can use the method ParseControl, for example if you have a html fragment like this: table> tr> td>Name/td> /tr> tr> td>asp:TextBox id="name" runat="server"

Web Controls

Web controls are ASP.NET controls which are understood and compiled on the server and render as HTML markup on the page. Most of the web server controls render their own HTML controls (or many HTML controls). The markup that is output froma web control can

Proxy

Proxy Design Pattern The Gang Of Four definition of this design pattern is "Provides a surrogate or placeholder for another object to control access to it". In the example below we use the pattern to enable caching on an ASP.net page. This code uses

Shortcuts

Table of Contents

Top Wiki Contributors

(last 30 days)

  1. abiruban (1)