public static int li_Count = 0; protected void btn_New_Comment_Click(object sender, EventArgs e) { try { System.Web.UI.Control myUserControl = (System.Web.UI.Control)Page.LoadControl("Movable_Text.ascx"); myUserControl.ID = Convert.ToString(li_Count); CPH_Master.Controls.Add(myUserControl); li_Count++; } catch { } }
Movable_Text ctrl = (MovableText)LoadControl("filename.ascx");
Movable_Text
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)