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...
lovely nehaPosted Feb 13, 2009, 11:37 PM
thx, i got an answere., some little mistake are there, but now it solved...
Satish MahapatraPosted Feb 13, 2009, 8:28 AM
lovely nehaPosted Feb 13, 2009, 6:58 AM
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 MahapatraPosted Feb 13, 2009, 5:45 AM
Hi Neha
Will you be plz specific abt ur requirements