Div tag

  • Thread starter Thread starter simon
  • Start date Start date
S

simon

I have 2 div tags on the page.

When I click on the button I would like that first one becomes hidden and
the other one visible.
I have many datagrids and other objects inside the div tag. It works if I
use client script.

How can I reference the div tag via the code behind?

Or should I use something else than div tag?

Thank you,
Simon
 
The ASP.Net Panel Control renders a div tag with all the functionality
you're asking about.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
 
You can also do the following <div id="div1" runat="server" >

in you code put
div1.visible = true/false

in codebehind you need to declare the div as Protected div1 as
htmlGenericControl

Hope this helps
 
Back
Top