public static UnpackScript ( string scriptName ) : string | ||
scriptName | string | FileName of the script. Just the file name. |
return | string |
void RegisterClientScript() { if (Page.ClientScript.IsClientScriptBlockRegistered(ClientScriptKey)) { Type cstype = GetType(); Page.ClientScript.RegisterClientScriptBlock(cstype, ClientScriptKey, ScriptHelper.UnpackScript("CollapsiblePanel.js")); } }
/// <summary> /// Sends server control content to a provided <see cref="T:System.Web.UI.HtmlTextWriter"/> object, which writes the content to /// be rendered on /// the client. /// </summary> /// <param name="writer">The <see langword="HtmlTextWriter"/> object that receives the server control content.</param> protected override void Render(HtmlTextWriter writer) { writer.Write(string.Format(CultureInfo.InvariantCulture, ScriptHelper.UnpackScript("CoCommentScript.js"), BlogTool, BlogUrl, BlogTitle, PostTitle, PostUrl, CommentAuthorFieldName, CommentTextFieldName, CommentButtonId, CommentFormId)); }