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

J

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
 
S

Steve C. Orr [MVP, MCSD]

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.
 

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

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,239
Members
46,828
Latest member
LauraCastr

Latest Threads

Top