Code Ignored??

Discussion in 'ASP .Net' started by Jonathan Wood, Sep 4, 2007.

  1. 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
     
    Jonathan Wood, Sep 4, 2007
    #1
    1. Advertisements

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

    Jonathan
     
    Jonathan Wood, Sep 4, 2007
    #2
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.