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">
<a href="mySubsite.aspx" class="lbOn">Open Lightbox Window</a>
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)
DDLParent.DataSource = data_string;
protected void DDLParent_SelectedIndexChanged(object sender, EventArgs e)
DDLSubname.DataSource = subname_data;
<asp:DropDownList ID="DDLParent" runat="server" onselectedindexchanged="DDLParent_SelectedIndexChanged" Autopostback="true"> </asp:DropDownList>
<asp:DropDownList ID="DDLCampaign" runat="server"></asp:DropDownList>
So now the problem is that when I select one item from the parent DDL in the lightbox window, the lightbox window close and opens the "mySubsite.aspx" as main window. My guess is that the postback, which is necessary to populate the Subname DDL, closes the "Default.aspx" and opens the "mySubsite.aspx" in full.
Is there a way to update the DDLs in the lightbox? I tried several ideas, but nothing worked..
Many thanks in advance for any help.