0

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

0

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

3
  • 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
    Sep 7 '11 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. Sep 7 '11 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
    Oct 7 '11 at 20:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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