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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Niradhip ChakrabortyPosted Feb 13, 2009, 5:28 AM
Now based on selection from dropdown list enable the
lovely nehaPosted Feb 13, 2009, 6:05 AM
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.