<%@ Page Language="c#" src="ProgControl_cb.cs" Inherits="MyNamespace.ProgControl" %>
Programmatic Control Example using Code-behind
<%--
using System;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace MyNamespace
{
public class ProgControl:Page
{
protected PlaceHolder PH = new PlaceHolder();
void Page_Load()
{
// The placement of the Placeholder control
// determines where output appears
Literal Message = new Literal();
Message.Text = "This text set from Page_Load!";
PH.Controls.Add(Message);
}
}
}
--%>