hi frnd,
i m loading a user controls in anoth user control at Dropdown SelectedIndexChanged...
according to the SelectedIndexValue load those perticular UserControl....
if our dropdownlist is on the aspx page then it work, but when we use dropdownlist in UserControl its not woking...help me fnds...

Satish Mahapatra18 reputationPosted Feb 13, 2009, 12:45 AM EST
Hi Neha
Will you be plz specific abt ur requirements
lovely neha44 reputationPosted Feb 13, 2009, 1:58 AM EST
Hi
Load UserControl with in a UserControl at SelectedIndexChanges ?
Its aur .ascx file design
On SearchEnquiry.ascx (userControl)
<telerik:RadComboBox ID="cmbSearchFor" runat="server" Width="178px" AutoPostBack="true"
OnSelectedIndexChanged="cmbSearchFor_SelectedIndexChanged">
<CollapseAnimation Duration="200" Type="OutQuint" />
<Items>
<telerik:RadComboBoxItem Text="Select" Value="None" Selected="true" />
<telerik:RadComboBoxItem Text="Test" Value="Test" />
<telerik:RadComboBoxItem Text="Inquiry" Value="Enquiry" />
<telerik:RadComboBoxItem Text="Complaint" Value="Complaint" />
<telerik:RadComboBoxItem Text="Home Collection" Value="HC" />
<telerik:RadComboBoxItem Text="TeleRegistration" Value="TR" />
Items>
telerik:RadComboBox>
//its placeholder where we load ur usercontrol at run time according to SelectedIndexChanges,
<asp:PlaceHolder ID="PlaceHolder1" runat="server">asp:PlaceHolder>
//.ascx.cs file
protected void cmbSearchFor_SelectedIndexChanged(object o, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e)
{
UserControls_SearchTest ucSearchTest = (UserControls_SearchTest)Page.LoadControl("UserControls/SearchTest.ascx");
PlaceHolder1.Controls.Add(ucSearchTest);
}
Satish Mahapatra18 reputationPosted Feb 13, 2009, 3:28 AM EST
lovely neha44 reputationPosted Feb 13, 2009, 6:37 PM EST
thx, i got an answere., some little mistake are there, but now it solved...