R
Ronald S. Cook
I would like to put a label (or any control) on a webform all from the code.
I.e. something like this:
protected void Page_Load(object sender, EventArgs e)
{
Label TestLabel = new Label();
TestLabel.Text = "Hello world";
}
without having to have anything like this already on the page:
<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
I.e. dynamically build a web page.
Thanks for any info.
I.e. something like this:
protected void Page_Load(object sender, EventArgs e)
{
Label TestLabel = new Label();
TestLabel.Text = "Hello world";
}
without having to have anything like this already on the page:
<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
I.e. dynamically build a web page.
Thanks for any info.