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

Prb in Dynamic UserControl

0 Answers 55 Views
Forum suggestions
This is a migrated thread and some comments may be shown as answers.
Kevin
Top achievements
Rank 1
Kevin asked on 17 Dec 2008, 01:07 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.

No answers yet. Maybe you can help?

Tags
Forum suggestions
Asked by
Kevin
Top achievements
Rank 1
Share this question
or