for (int i = 1; i <= li_Count; i++) { Movable_Text mt = new Movable_Text(); mt.ID = "Movable_Text" + Convert.ToString(li_Count); mt = LoadControl("~/Controls/Movable_Text.ascx") as Movable_Text; DragPanelExtender drag_panel = new DragPanelExtender(); drag_panel = mt.FindControl("DPE_TextComments") as DragPanelExtender; drag_panel.ID = "DPE_TextComments" + Convert.ToString(li_Count); this.PH_Master_Page.Controls.Add(mt); }
for (int i = 1; i <= li_Count; i++) { str_drag_panel = "DPE_TextComments" + Convert.ToString(li_Count); DragPanelExtender drag_panel = new DragPanelExtender(); drag_panel = this.FindControl(str_drag_panel) as DragPanelExtender; if (drag_panel == null) { // } else { // } }
PreInit
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)