I would like to add a hyperlink to a custom web part which will take the users to a web page on a new window with the configuration settings for the web part. If I try and add a text property as below, it will have a textbox associated with it.

Category("News Options"),
WebDisplayName("Click the link below to view configuration settings")]
public string WebPartSettingsPage

Is there a way to add something similar to a label control that would just display a link the users can can click?

2 Answers 2


The only option is to create a custom editor part. Check out this msdn example.


Calling the MSOTlPn_ShowToolPane2Wrapper javascript function will open the web part in edit mode. Add this line to CreateChildControls():

this.Controls.Add(new LiteralControl(string.Format(@"<BR>This Web Part has not been configured. <A href=""javascript:MSOTlPn_ShowToolPane2Wrapper('Edit',this,'{0}')"">Open the tool pane</A> to configure properties.<BR><BR>", this.ID)));

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.