jQuery Fade in FadeOut Issue in User Control
<p>I have a user control,  <code>&lt;asp:  Button&gt;</code> inside it. On button click I am trying to populate message  in label  to fadein and fade out. The label is in default.aspx page. Where the user control is place in the default.aspx.</p>

<p>Used the following code to run jQuery for fadein fadeout. But some how the fadein fade out is not working as this is in user control as the function is not fired.  If it is in the same page. Function is getting fired. </p>

<pre><code>public void AssignData(string strMsg)
{
    if (strMsg == "No Results")
        lblMsgText.ForeColor = System.Drawing.Color.Red;
    else
        lblMsgText.ForeColor = System.Drawing.Color.Green;

    lblMsgText.Text = strMsg;
    RunJavaScriptVallidations();
}

/// &lt;summary&gt;
/// This method is used for validations.
/// &lt;/summary&gt;
public void RunJavaScriptVallidations()
{
    string strJavaScript = @"$('#tcPatients_tbsearch_Search1_btnSearch').click(function(){     
            $('#" + lblMsgText.ClientID + @"').fadeIn(1000).fadeOut(2000);
      });";

    ToolkitScriptManager.RegisterStartupScript(Page, GetType(), "Validations", strJavaScript, true);
}
</code></pre>

<p><code>RunJavaScriptVallidations();</code> - this method is called in page load. </p>

<p>Any thoughts on how to solve this. Thanks in advance. </p>
