Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Custom control collapseble panel

Custom control collapseble panel

Scheduled Pinned Locked Moved ASP.NET
sysadmin
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    matsnas
    wrote on last edited by
    #1

    I want to create a control that has a header (text and and image background) that when clicked, expands/collapses a body content. I want could easily create this with two divs(Div A and B) and a javascipt that sets the style attribute 'display' to 'none' for div B wen clicking div B but I want to hide this implementation. I'd like to be able to use the control somehing like this:   <MyControl ID="cc1" runat="server">     <HeadTemplate class="container_head">       SomeText     </HeadTemplate>     <ItemTemplate class="container_body">       <a href="#">List some items</a>       <a href="#">Add some item</a>     </ItemTemplate>   MyControl> ...or   <MyControl ID="cc1" runat="server" class="container_head" Text="SomeText">     <Div class="container_body">       <a href="#">List some items</a>       <a href="#">Add some item</a>     </Div>   MyControl>

    N N 2 Replies Last reply
    0
    • M matsnas

      I want to create a control that has a header (text and and image background) that when clicked, expands/collapses a body content. I want could easily create this with two divs(Div A and B) and a javascipt that sets the style attribute 'display' to 'none' for div B wen clicking div B but I want to hide this implementation. I'd like to be able to use the control somehing like this:   <MyControl ID="cc1" runat="server">     <HeadTemplate class="container_head">       SomeText     </HeadTemplate>     <ItemTemplate class="container_body">       <a href="#">List some items</a>       <a href="#">Add some item</a>     </ItemTemplate>   MyControl> ...or   <MyControl ID="cc1" runat="server" class="container_head" Text="SomeText">     <Div class="container_body">       <a href="#">List some items</a>       <a href="#">Add some item</a>     </Div>   MyControl>

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      Perhaps this will help http://www.codeproject.com/aspnet/ExpandingDiv.asp[^]


      only two letters away from being an asset

      1 Reply Last reply
      0
      • M matsnas

        I want to create a control that has a header (text and and image background) that when clicked, expands/collapses a body content. I want could easily create this with two divs(Div A and B) and a javascipt that sets the style attribute 'display' to 'none' for div B wen clicking div B but I want to hide this implementation. I'd like to be able to use the control somehing like this:   <MyControl ID="cc1" runat="server">     <HeadTemplate class="container_head">       SomeText     </HeadTemplate>     <ItemTemplate class="container_body">       <a href="#">List some items</a>       <a href="#">Add some item</a>     </ItemTemplate>   MyControl> ...or   <MyControl ID="cc1" runat="server" class="container_head" Text="SomeText">     <Div class="container_body">       <a href="#">List some items</a>       <a href="#">Add some item</a>     </Div>   MyControl>

        N Offline
        N Offline
        N a v a n e e t h
        wrote on last edited by
        #3

        http://www.codeproject.com/aspnet/XPStyleNavigationBar.asp[^] this too

        All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups