Hi I Have created some controls like TextBox,DropDownList dynamically based on the XML file.
I Have the following code for the same
C# File
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Xml;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Reflection;
using System.Text;
public partial class _Default : System.Web.UI.Page
{
Table tbl = new Table();
TableRow tblrw = new TableRow();
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
}
}
protected void Page_PreInit(object sender, EventArgs e)
{
PaintPage();
}
private Control AddControl(string name, string type, ArrayList value,string param)
{
Label lbl1 = ...
Go to the complete details ...