Hi frds,
I have a dropdown list, on According to Selected IndexChanges load UserControls dyniamically?
can any one help me ASAP
Neha
Hi frds,
I have a dropdown list, on According to Selected IndexChanges load UserControls dyniamically?
can any one help me ASAP
Neha
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Niradhip ChakrabortyRank #429 · 5.8K reputationPosted Feb 13, 2009, 12:28 AM EST
Now based on selection from dropdown list enable the
lovely neha44 reputationPosted Feb 13, 2009, 1:05 AM EST
On SearchEnquiry.ascx (userControl)
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>
<asp:PlaceHolder ID="PlaceHolder1" runat="server">asp:PlaceHolder>
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);
}
Im using this code, but it not show the usercontrols.