Custom Web Control Properties RRS feed

  • Question

  • I am trying to create a custom web control and need help with creating the properties of the control. Specifically I would like to include two properties.

    One for an "imageURL" and the other for a "linkURL". I would like the property to work like the "imageURL" property of an image button in that when you select the property in the properties window you get the "..." eclipse button and then that pops up a dialog box so you can select the image within the project. That should give me a relative URL.

    The second property would be to allow the developer to select a linkURL to to select a link to another page within the solution. This should also allow the developer to select a link using the same type of popup dialog after clicking on the "..." eclipse button. This would allow for a relative link within the solution. Additionally I would also want to allow the developer to enter any other URL such as "abcd.com".

    Any help would be greatly appreciated; point me to some coding examples, tell me how to do this or where I can find documentation for implementing these types of properties.

    Ron McCarthy

    • Moved by nobugz Tuesday, June 2, 2009 8:32 PM forums.asp.net (From:Common Language Runtime)
    Tuesday, June 2, 2009 8:12 PM