sharepoint - How to make a link to open to a toolpart in webpart -


i have custom webpart , when first renders want give link open modify shared webpart properties when open oob webparts content editor or xml webpart? 1 having idea on ...i using when m clicking on it, showing following error

i m using this:

literalcontrol lctrl = new literalcontrol(); lctrl.text=string.format("<a id='msoframeworktoolpartdefmsg_{0}' href=\"javascript:msotlpn_showtoolpane2wrapper('edit','129','{0}');\">open tool pane</a> , enter valid value.",this.id); controls.add(lctrl); 

error: web part attempted change either invalid or has been removed user.click refresh it.(this showing in toolpane)

taken working webpart:

myvar = "<a href=\"javascript:msotlpn_showtoolpane2wrapper('edit', this, '" + id + "')\">open toolpanel</a>"

"id" webpart id. use usercontrol hold webpart code, use parent.id


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -