How to call jquery function in a class file
<p>Hi all I have created a javascript which I want to use in my entire application, so I have created a class which returns string as follows</p>

<pre><code> public static string ShowAlert(string pHeader, string pMessage)
    {
        StringBuilder sb = new StringBuilder();
        sb.Append("&lt;script language='JavaScript' type='text/javascript'&gt;");
        sb.Append("example1('" + pHeader + "','" + pMessage + "')");
        sb.Append("&lt;/Script");
        return sb.ToString();
    }
</code></pre>

<p>This is my code <code>JFunction.JS</code></p>

<pre><code>(function example1(title, content) {
    $.msgBox({
        title: title,
        content: content
    });
})
</code></pre>

<p>Now on button click I am just calling as follows </p>

<p><code>Page.ClientScript.RegisterStartupScript(this.GetType(), "",ShowAlert(pHeader,pMessage) , true);</code></p>

<p>But I am unable to get the message, so is there any way to create a unique method instead of calling the script on each page,</p>
