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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. Can templated controls define tags for sub components?

Can templated controls define tags for sub components?

Scheduled Pinned Locked Moved ASP.NET
tutorialquestion
1 Posts 1 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.
  • K Offline
    K Offline
    Kir Birger
    wrote on last edited by
    #1

    What I want to do is create a templated control to display two dropdowns in different ways. The dropdowns will be doing the same thing, but must look different on different pages. I'm going for something like this: <mycontrols:cascadingdropdowns> <controltemplate> <div>***<dropdown1 />***</div> <div>***<dropdown2 />***</div> </controltemplate> </mycontrols:cascadingdropdowns> where Dropdown1 and Dropdown2 are some properties of type DropDownList. Can anyone tell me if this is possible? I have gotten up to the point of creating the ControlTemplate property with type ITemplate, andthat works, but I am not sure how to go about making it so I can have the dropdown1 and 2 properties

    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