i am working on a custom web part property and my question is how can i have hyper-link(seen in the below image) or bold or italic text in the custom property for the web part?

enter image description here

1 Answer 1


Check out Tobias Zimmergren's post on the ToolPart: http://www.zimmergren.net/archive/2008/11/29/how-to-custom-web-part-properties-toolpart.aspx

  • Thanks Mike, i know how to add the custom prop to toolpart but my question was more like how can i have a hyperlink in the toolpart.
    – Nick Kahn
    Commented Sep 7, 2011 at 19:45
  • 1
    What I understood your question to be was how to get more control over how the properties can be displayed. The ToolPart or something like it was essentially my answer. A link is a string, so technically you can use a hyper-link today, it just woldn't have the "test link" option. Commented Sep 7, 2011 at 23:31
  • Mike's right. You'll need to manually build the 'Test Link' option, which will trigger a piece of Javascript to called window.open(), passing in the current value of the textbox which is used to store the property.
    – James Love
    Commented Oct 7, 2011 at 20:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.