Author: iwadds | Posted on: 7/22/2010 1:38:59 PM | Views : 375

Salam To All,
for my dynamic user control, i am trying to do any event from that control (delete, update .... etc) but it disappeard when i make any event !!!
this the code in the page to load it dynamically:
protected override void OnInit(EventArgs e) { PlaceHolder BodyPlaceHolder = (PlaceHolder)this.FindControl("BodyPlaceHolder"); Control UserControl = this.LoadControl("ObjectControls/Test/TestControl.ascx"); BodyPlaceHolder.Controls.Add(UserControl); BodyPlaceHolder.DataBind(); }

do i miss anything ?
please help me.

...

Go to the complete details ...