public static int li_Count = 0; protected void Add_contol_button_Click(object sender, EventArgs e) { try { Movable_Text mt = new Movable_Text(); mt.ID = Convert.ToString(li_Count); mt = LoadControl("Movable_Text.ascx") as Movable_Text; //mt.Controls.Add(LoadControl("Movable_Text.ascx")); mt.EnableViewState = false; CPH_Master.Controls.Add(mt); li_Count++; } catch { } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)