469,601 Members | 2,377 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,601 developers. It's quick & easy.

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

jef
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

Nov 19 '05 #1
1 2330
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" <je************@gmail.com> wrote in message
news:11**********************@l41g2000cwc.googlegr oups.com...
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

Nov 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

44 posts views Thread by Mariusz Jedrzejewski | last post: by
12 posts views Thread by Jerad Rose | last post: by
5 posts views Thread by dje | last post: by
2 posts views Thread by Řyvind Isaksen | last post: by
1 post views Thread by shapper | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.