Load Jquery on buttonclick asp.net
<p>Hi i am trying to load the following jquery on buttonclick in the code behind, however nothing seems to be happening;</p>

<pre><code>    StringBuilder sb = new StringBuilder();
    sb.Append("$(document).ready(function () {");
    sb.Append("$.gritter.add({");
    sb.Append("title: 'This is a regular notice!',");
    sb.Append("text: 'This will fade out after a certain amount of time. Vivamus eget tincidunt velit. Cum sociis natoque penatibus et &lt;a href='#' style='color:#ccc'&gt;magnis dis parturient&lt;/a&gt; montes, nascetur ridiculus mus.',");
    sb.Append("image: 'http://a0.twimg.com/profile_images/59268975/jquery_avatar_bigger.png',");
    sb.Append("sticky: false,");
    sb.Append("time: ''");
    sb.Append("});");
    sb.Append("});");


    Page.ClientScript.RegisterClientScriptBlock(this.GetType(), Guid.NewGuid().ToString(), sb.ToString(), true);
</code></pre>

<p>Can anyone see what i am doing wrong?</p>
