protected override void CreateChildControls() { base.CreateChildControls(); _editor = new LinqItLinkEditor(); _editor.ID = "editor"; _editor.Provider = typeof (GoBasicLinkEditorProvider).GetShortAssemblyName(); _editor.ReferenceId = Request.QueryString["id"]; plhEditor.Controls.Add(_editor); }
protected override void CreateChildControls() { base.CreateChildControls(); AddLiteral("<div class=\"linqit-linklisteditor\">"); AddLiteral("<table style=\"width:100%\">"); AddLiteral("<tr>"); AddLiteral("<td class=\"links\">"); AddLiteral("<ul class=\"sortable\">"); AddLiteral("</ul>"); AddLiteral("</td>"); AddLiteral("<td class=\"editor\">"); AddLiteral("<div class=\"editor\">"); _editor = new LinqItLinkEditor(); _editor.CancelIncludes = CancelIncludes; _editor.ID = "linkEditor"; Controls.Add(_editor); AddLiteral("</div>"); AddLiteral("</td>"); AddLiteral("</tr>"); AddLiteral("</table>"); AddLiteral("<div class=\"buttons\">"); AddButton("AddLink", "linqit.linklisteditor.addLink(this); return false;", "Add Link"); AddButton("RemoveLink", "linqit.linklisteditor.removeLink(this); return false;", "Remove Link"); AddLiteral("</div>"); _hiddenValue = new HiddenField() { ID = "hiddenValue" }; Controls.Add(_hiddenValue); AddLiteral("</div>"); }