if i load one or two controls then is is not bad but my controls have comboboxes and everytime a postback happens the all the controls are loaded again. if i have 6 controls loaded then the performance is very poor. any ideas on how this can be speeded up. Ideally i would only like the control to load when the tabstrip index is changed?
protected void RadMultiPage1_PageViewCreated1(object sender, RadMultiPageEventArgs e)
{
string userControlName = string.Empty; // "~/monarch/ControlPages/" + e.PageView.ID + ".ascx";
if (e.PageView.ID == "Customer")
{
userControlName =
"~/monarch/ControlPages/SingleEntryView.ascx";
}
else
{
userControlName =
"~/monarch/ControlPages/SingleMeasureView.ascx";
}
if (userControlName.Length > 0)
{
Control userControl = Page.LoadControl(userControlName);
userControl.ID = e.PageView.ID +
"_UserControl";
e.PageView.Controls.Add(userControl);
}
}