How to hide div in AccordionPane?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • staeri@gmail.com

    How to hide div in AccordionPane?

    In the content section of an AccordionPane I have a div (runat=server)
    containing a link button.

    I want to hide the div from code-behind (VB) but I can't figure out
    the correct syntax. Can someone please help me?

    Very grateful for fast response!

    Best regards,

    S
  • Eliyahu Goldin

    #2
    Re: How to hide div in AccordionPane?

    Give the <divan id. I am not familiar with the AccordionPane. Likely, it
    has a method allowing locating controls in the content by id, something like
    FindControl. Once you have located the div, typecast it to HtmlControl and
    set property Visible to false.


    --
    Eliyahu Goldin,
    Software Developer
    Microsoft MVP [ASP.NET]




    <staeri@gmail.c omwrote in message
    news:35508f3e-568e-4d71-b64e-82ec31a74ef3@27 g2000hsf.google groups.com...
    In the content section of an AccordionPane I have a div (runat=server)
    containing a link button.
    >
    I want to hide the div from code-behind (VB) but I can't figure out
    the correct syntax. Can someone please help me?
    >
    Very grateful for fast response!
    >
    Best regards,
    >
    S

    Comment

    • David

      #3
      Re: How to hide div in AccordionPane?

      Give your div an ID...

      In your code behind, you need a reference to the div if it has not already
      been put in place...

      System.Web.UI.H tmlControls.Htm lControl YourDivId

      then where you want to hide it...

      YourDivId.Visib le = false



      --
      Best regards,
      Dave Colliver.

      ~~
      http://www.FOCUSPortals.com - Local franchises available



      <staeri@gmail.c omwrote in message
      news:35508f3e-568e-4d71-b64e-82ec31a74ef3@27 g2000hsf.google groups.com...
      In the content section of an AccordionPane I have a div (runat=server)
      containing a link button.
      >
      I want to hide the div from code-behind (VB) but I can't figure out
      the correct syntax. Can someone please help me?
      >
      Very grateful for fast response!
      >
      Best regards,
      >
      S

      Comment

      Working...