creating and running a client script from asp.net
<p>I want to create a script like this an run that :(below is attemp)</p>

<pre><code>protected void txtPassword_TextChanged(object sender, EventArgs e)
{
        script  =  "&lt;script type='text/javascript'&gt;";
        script += "function showmsg(){";
        script += "$('#msg').slideDown('normal');";
        script += "$('#msg span').addClass('message');";
        script += "setTimeout('showmsg',100);";
        script += "}";
        script += "&lt;/script&gt;";
        ClientScript.RegisterClientScriptBlock(this.GetType(), "ShowMessage",script);
}
</code></pre>

<p>Where is my mistake ? why there is no run ? </p>
