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. Advertising

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

    Jonathan

    "Jonathan Wood" <> wrote in message
    news:%...
    >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
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Kevin Spencer

    Re: TRACE and HEAD verbs ignored by handler

    Kevin Spencer, Jul 1, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    356
    Rein Petersen
    Jul 2, 2003
  2. Waldy

    Code changes ignored

    Waldy, Jul 29, 2005, in forum: ASP .Net
    Replies:
    3
    Views:
    365
    Waldy
    Jul 29, 2005
  3. aa
    Replies:
    29
    Views:
    856
    Hywel
    Oct 12, 2004
  4. Replies:
    2
    Views:
    469
    Mike Treseler
    Apr 4, 2007
  5. Replies:
    0
    Views:
    65
Loading...

Share This Page