locked
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.

    Thanks,
    Ron McCarthy

    Monday, June 1, 2009 9:18 PM

Answers

  • Hello Ron,

     

    Thank you for your post!  I would suggest posting your question in the '.NET Framework Developer Center > .NET Development Forums > Common Language Runtime ' located here:  http://social.msdn.microsoft.com/Forums/en-US/clr/threads


    Have a great day!

    Thanks!


    SachinW Tier 2 Application Support Server and Tools Online Engineering Live Services Team
    • Proposed as answer by SachinW Monday, June 1, 2009 10:07 PM
    • Marked as answer by SachinW Friday, September 4, 2009 6:59 AM
    Monday, June 1, 2009 10:07 PM

All replies

  • Hello Ron,

     

    Thank you for your post!  I would suggest posting your question in the '.NET Framework Developer Center > .NET Development Forums > Common Language Runtime ' located here:  http://social.msdn.microsoft.com/Forums/en-US/clr/threads


    Have a great day!

    Thanks!


    SachinW Tier 2 Application Support Server and Tools Online Engineering Live Services Team
    • Proposed as answer by SachinW Monday, June 1, 2009 10:07 PM
    • Marked as answer by SachinW Friday, September 4, 2009 6:59 AM
    Monday, June 1, 2009 10:07 PM
  • I would suggest posting your question in http://forums.asp.net.
    MSMVP VC++
    Tuesday, June 2, 2009 1:44 AM
  • Thank you, have posted as you suggested.
    Tuesday, June 2, 2009 8:13 PM
  • Have posted. Thanks for the direction.
    Wednesday, June 3, 2009 2:21 PM