How to hide/show HTML Grid Layout Panel via code behind

Discussion in 'ASP .Net' started by jef, Mar 21, 2005.

  1. jef

    jef Guest

    I have an HTML Grid Layout Panel on my web form that I would like to
    hide/show via certain events in my VB code behind. However, I'm not
    sure how to reference the panel. I've set the ID property of the panel
    but when I reference it in my VB code, it just says the object doesn't
    exist.

    -jef
    jef, Mar 21, 2005
    #1
    1. Advertising

  2. Right click on the grid and choose "Run as Server Control" so that the tag
    will have the runat="server" attribute.
    Then you should be able to access it via server side code.

    --
    I hope this helps,
    Steve C. Orr, MCSD, MVP
    http://SteveOrr.net


    "jef" <> wrote in message
    news:...
    >I have an HTML Grid Layout Panel on my web form that I would like to
    > hide/show via certain events in my VB code behind. However, I'm not
    > sure how to reference the panel. I've set the ID property of the panel
    > but when I reference it in my VB code, it just says the object doesn't
    > exist.
    >
    > -jef
    >
    Steve C. Orr [MVP, MCSD], Mar 21, 2005
    #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. Rick Spiewak
    Replies:
    3
    Views:
    3,150
    Rick Spiewak
    Aug 26, 2003
  2. =?Utf-8?B?RWR3YXJk?=

    Where is the "Grid Layout Panel"

    =?Utf-8?B?RWR3YXJk?=, Nov 26, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    978
    =?Utf-8?B?RWR3YXJk?=
    Nov 27, 2005
  3. Replies:
    1
    Views:
    572
    John Timney \(MVP\)
    Jun 19, 2006
  4. Chris

    Grid Layout Panel and Panel in the Designer

    Chris, Aug 28, 2003, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    199
    Chris
    Aug 28, 2003
  5. Nick Stansbury

    Extend Panel control - and set to grid layout

    Nick Stansbury, Dec 16, 2004, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    122
    Nick Stansbury
    Dec 16, 2004
Loading...

Share This Page