First page list box control as follows
<asp:ListBox ID ="lbllist" runat ="server">
i want to access first page listbox control name in the second page and set visible false.
Second page code as follows
protected void lnkCbndate_click(object sender, EventArgs e)
{
MPE.Show(); (Ppopup)
if (Session["compkgid"] == "PKG0000041")
{
lblval.Text = "RPRSCRB and RFPFF date get schuffled";
ListBox btn = (ListBox)PreviousPage.FindControl("lbllist");
lblval.Text = "RPRSCRB and RFPFF date get schuffled";
if (btn.Items.Count == 0)
{
btn.Visible = false;
}
}
}
i am writing the above code but it is not working.