Code Ignored??

J

Jonathan Wood

I added an AdRotator control to my master page. It seems to work fine.

But if I set it's visible property to False, and then place the following
code in the page (actually, it's in another, nested, master page):

void Page_Load()
{
AdRotator ads = (AdRotator)Master.FindControl("adrot");
ads.Visible = true;
}

Nothing happens. There is no sign of the AdRotator control when I preview my
page.

Can anyone see what I'm doing wrong?

Thanks.

Jonathan
 
J

Jonathan Wood

Nevermind. The nested master pages we not organized exactly as I was
thinking.

Jonathan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,756
Messages
2,569,535
Members
45,008
Latest member
obedient dusk

Latest Threads

Top