You page contains a Controls Collection that you can use to append new Controls, as Labels and Textboxes, i.e.
You can access this Controls Collection using code-behind, accessing the Page.Controls property and appending the controls you want to display in the page, that will then be rendered.
You can check this out: http://msdn.microsoft.com/en-us/library/system.web.ui.control.createchildcontrols.aspx
Here is a simple example you may try out:
Codefront (aspx webform)
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Test Website</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<!-- here you can place the static text and other elements -->
<h1>TESTING</h1>
blah blah blah blah blah
</div>
<div id="placeholder" runat="server">
<!-- here is where the dinamically created elements will be placed -->
</div>
</form>
</body>
</html>
Code-behind
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class _Default : System.Web.UI.Page {
protected override void CreateChildControls(){
// Add a Label to the current ControlCollection.
Label lbl = new Label();
lbl.Text = "Label text";
placeholder.Controls.Add(lbl);
// Create a text box control, set the default Text property, and add it to the ControlCollection.
TextBox box = new TextBox();
box.Text = "Textbox text";
placeholder.Controls.Add(box);
}
}
Hope this help ;)