Hi all,
I have two sites: "Default.aspx" and "mySubsite.aspx". In "Default.aspx" I have a hyperlink to open a lightbox window, which works perfectly.
Here is the code for it:
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<a href="mySubsite.aspx" class="lbOn">Open Lightbox Window</a>
</ContentTemplate>
</asp:UpdatePanel>
When the lightbox window opens("mySubsite.aspx.cs") I placed two drop down lists ( parent child use) . First DDL contains all the parent names and the second DDL returns the subname to the corresponding parent name. So basically I select a parent item and get the right subname for it.
Code for it looks this way.
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
DDLParent.DataSource = data_string;
DDLParent.DataBind();
}
}
protected void DDLParent_SelectedIndexChanged(object sender, EventArgs e)
View Complete Post