locked
Attributes in template of a web user control ? RRS feed

  • Question

  • User1815849124 posted

    I have a need to allow something like this in my web user control

    <uc1:myControl property1="" property2="">

    <columnModel DBField="" DisplayMode=""  />

    </uc1:myControl>


    I thought these can be done with Templated user controls but then I could only get to add content inside tags of <columnModel>.. I am looking to add attributes. This is in the sole interest of making my control code usage to be very readable... Currently I am just able to do the below:

    <uc1:myControl property1="" property2="" DBField="" DisplayMode=""  />

    Any suggestions / help is appreciated. Thanks.

    Harish

    Saturday, October 24, 2009 6:17 AM

Answers

  • User371668647 posted

    You have to extend the Template item to support the desired properties.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Saturday, October 24, 2009 5:53 PM