G
Guest
Hi there,
I have following code which receives Panel names from the database. It tells
me Object reference not set to an instance of an object. Why is that? Thanks
a lot for your help....
Chris
while (or.Read())
{
Panel pnl = new Panel();
pnl = (Panel)FindControl(or.GetString(0));
pnl.Visible = false;
}
I have following code which receives Panel names from the database. It tells
me Object reference not set to an instance of an object. Why is that? Thanks
a lot for your help....
Chris
while (or.Read())
{
Panel pnl = new Panel();
pnl = (Panel)FindControl(or.GetString(0));
pnl.Visible = false;
}