Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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

share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

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

share|improve this answer
    
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. –  Abu Hamzah 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. –  Mike Oryszak 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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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