Input button visible when not visible

Discussion in 'ASP .Net' started by tshad, Oct 31, 2009.

  1. tshad

    tshad Guest

    I have button in my aspx page that I want to hide to use for later.

    <input id="Button1" type="button" value="button" visible="false"
    onclick="ClipBoard();" />

    But it still shows up on my screen - why is that?

    Thanks,

    Tom
    tshad, Oct 31, 2009
    #1
    1. Advertising

  2. tshad

    tshad Guest

    "Mark Rae [MVP]" <> wrote in message
    news:...
    > "tshad" <> wrote in message
    > news:%...
    >
    >> I have button in my aspx page that I want to hide to use for later.
    >>
    >> <input id="Button1" type="button" value="button" visible="false"
    >> onclick="ClipBoard();" />
    >>
    >> But it still shows up on my screen - why is that?

    >
    > Because there is no "visible" attribute of the <input> tag, so the browser
    > just ignores it.
    >


    That's right.

    I forgot that. I put it there because intellisense showed it as one of the
    options.

    And since it shows as lower case, it looks like an html attribute.

    Thanks,

    Tom

    > If you want to hide HTML controls, you need to use one or other (very
    > occasionally, both) of the display and/or visibility attributes:
    > http://www.google.co.uk/search?sourceid=chrome&ie=UTF-8&q=HTML display visibility
    >
    >
    > --
    > Mark Rae
    > ASP.NET MVP
    > http://www.markrae.net
    tshad, Oct 31, 2009
    #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. tshad

    button visible/not visible

    tshad, Oct 26, 2004, in forum: ASP .Net
    Replies:
    6
    Views:
    4,445
    Brian Hoops
    Oct 28, 2004
  2. tshad

    Sections visible and not visible

    tshad, Jan 31, 2005, in forum: ASP .Net
    Replies:
    4
    Views:
    2,062
    tshad
    Jan 31, 2005
  3. Patrick Olurotimi Ige
    Replies:
    7
    Views:
    5,965
    Patrick Olurotimi Ige
    Jun 15, 2005
  4. Dan
    Replies:
    0
    Views:
    929
  5. Jurjen de Groot
    Replies:
    0
    Views:
    302
    Jurjen de Groot
    May 19, 2008
Loading...

Share This Page