Onclick is not working in asp:Button?
<pre><code>&lt;script type="text/javascript"&gt;

        $(function () {

            $('#LogStatusLable').click(function () {
                $('#LoginPanel').slideToggle("slow");
            });
            $('#LoginPanel').hide();

        });
    &lt;/script&gt;

&lt;div id="LoginPanel"&gt;
  &lt;br /&gt;
  &lt;div class="grid_6"&gt;
  &lt;br /&gt;
  &lt;a&gt;New User Registration&lt;/a&gt;
  &lt;/div&gt;
  &lt;table class="grid_6"&gt;
      &lt;tr&gt;
      &lt;td&gt;Email-ID&lt;/td&gt;
      &lt;td&gt;
      &lt;asp:TextBox runat="server" ID="UsernameTextBox" Width="150px"&gt;&lt;/asp:TextBox&gt;
      &lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
      &lt;td&gt;Password&lt;/td&gt;
      &lt;td&gt;
      &lt;asp:TextBox runat="server" ID="PasswordTextBox" TextMode="Password" Width="150px"&gt;&lt;/asp:TextBox&gt;
      &lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
      &lt;td colspan="2"&gt;&lt;asp:Label runat="server" ID="LoginValidation" Text=""&gt;&lt;/asp:Label&gt;  &lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
      &lt;td&gt;
     &lt;asp:Button ID="Login" runat="server" UseSubmitBehavior="true" Text="Login" 
                                      CssClass="buttoncss" onclick="Login_Click" /&gt;
      &lt;br /&gt; &lt;br /&gt;
       &lt;/td&gt;
      &lt;/tr&gt;
     &lt;/table&gt;

&lt;/div&gt;

protected void Login_Click(object sender, EventArgs e)
    {
        if (UsernameTextBox != null &amp;&amp; PasswordTextBox.Text != null)
        {
            if (_user.GetandSetUserDetails(UsernameTextBox.Text, PasswordTextBox.Text))
            {

            }
            else
            {
                LoginValidation.Text = "Invalid username or password";
            }
        }
        else
        {
            LoginValidation.Text = "Enter the Username and Password";
        }
    }
</code></pre>

<p>I used the jquery to slideup and slidedown the div tag. Its working correctly but the inside of the div tag i used the asp:button its not functioning well. onclick property is dosent work. Please help me to find a solution.</p>

<p>Thank you.</p>
