narasiman rao

narasiman rao

  • NA
  • 519
  • 767k

Access the first pagelistbox control name to second page

Jul 25 2015 4:30 AM
 
 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. 

Answers (1)