Author: prince5 | Posted on: 4/6/2009 10:45:13 PM | Views : 537


using System;

using System.Data;

using System.Configuration;

using System.Web;

using System.Web.Security;

using System.Web.UI;

using System.Web.UI.WebControls;

using System.Web.UI.WebControls.WebParts;

using System.Web.UI.HtmlControls;

 

public partial class CSharp : System.Web.UI.Page

{

Panel pnlTextBox;

Panel pnlDropDownList;

protected void Page_Load(object sender, EventArgs e)

{

Literal lt;

Label lb;

//Dynamic TextBox Panel

pnlTextBox = new Panel();

pnlTextBox.ID = "pnlTextBox";

pnlTextBox.BorderWidth = 1;

pnlTextBox.Width = 300;

this.form1.Controls.Add(pnlTextBox);

lt = new Literal();

lt.Text = "<br />";

this.form1.Controls.Add(lt);

lb = new Label();

lb.Text = "Dynamic TextBox<br />";

pnlTextB ...

Go to the complete details ...