locked
Description to user control proerties. RRS feed

  • Question

  • User1175727208 posted

    Hi all,

    I've a user control that contains 3 properties. I want to provide a description to these properties, so that the user knows what the property does. I have tried the following code:

    [

    Browsable(true),

    Category("Data"),

    Description("Get or Set the connection string for connecting to database.")

    The two tags are working except the description, the property is displayed in the property window, it's coming under the "Data" category, but i'm not getting the description.
    Kindly provide me a solution for the above problem. Is it that description work only for custom controls and not for user controls??
    Thanks and Regards[^o)]
     
    Wednesday, March 26, 2008 8:04 AM

Answers

  • User1947866343 posted

     I just tried it and it seemed to work fine.  Sometimes it's necessary to clean out the dll's in your application to ensure you've got the latest.  Try deleting the appropriate dll from the bin folder of your application, the drop your control onto the page to upload the latest dll.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, March 26, 2008 12:12 PM