This is a migrated thread and some comments may be shown as answers.

Dynamic user control

1 Answer 61 Views
Forum suggestions
This is a migrated thread and some comments may be shown as answers.
monalisa
Top achievements
Rank 1
monalisa asked on 17 Dec 2008, 01:41 PM
Hi
I have two usercontrol as "Search" and "Registration",which am loading in a placeholder dynamically and even it is getting loaded
finely.
In my search usercontrol i have a grid with all user and if am selecting a particular row all the deatils value is displayed in registration page which i did in the following way (loading the registration page in the same placeholder and showing details based on session value)

 

protected void grdUserInfo_SelectedIndexChanged(object sender, EventArgs e)

 {  

 

 

pkid.Value =grdUserInfo.SelectedRow.Cells[1].Text;

Session[

 

"pkidValue"] = pkid.Value;

 

MasterPage Master = new MasterPage();

 Master.ID = 

"RADMAster";

 

 

 

PlaceHolder plc = ((PlaceHolder)this.Page.Master.Master.FindControl("SplitterContentPlaceHolder"). FindControl("SmartChartContentAreaHolder").FindControl("tabstrip1").FindControl("UpdatePanel1"). FindControl("PlaceHolder1"));

 

 

 plc.Controls.Clear();

 

string controlPath = "Registration.ascx";

 

 

 

UserControl uc = (UserControl)LoadControl(controlPath);

 

 

 uc.ID = 

userload1";

 

 

  plc.Controls.Add(uc);

 

 

}
Now when am clicking update  button on registration page  the updatebtn click event is not getting fired and again search usercontrol is getting displayed.
plz any one help me how can i fire that update btn click event.

 

 

1 Answer, 1 is accepted

Sort by
0
Paul
Telerik team
answered on 17 Dec 2008, 04:16 PM
Hello monalisa,

Please answer our questions in Ticket 178070.

Regards,
Paul
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Forum suggestions
Asked by
monalisa
Top achievements
Rank 1
Answers by
Paul
Telerik team
Share this question
or