Monday 14 April 2014

what is place holder in ASP.NET with example.

PlaceHolder control:
 
The PlaceHolder control is used to reserve space for controls added by code use to PlaceHolder control  and show at run time.It does not produce any visible output.

Properties:

runat     Specifies that the control is a server control. Must be set to "server"

Example:

Source file:Home.aspx


home.aspx.cs file :
 Output

 Before PlaceHolder
 After PlaceHolder


0 comments:

Post a Comment