ASP.NET C# Button OnClick No Response, No Value Change
<p>I have build a simple website with ASP.NET C#.</p>

<p>It runs normally after I pressed [RUN] in Visual Studio.</p>

<p>But, after I uploaded to my web hosting server, nothing happens when the button is clicked. The "Label1" is not changing anything. It seems to be no post back.</p>

<p>What happens? What is missed?</p>

<p>here is the Default.aspx:</p>

<pre><code>&lt;%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="MyWebApp._Default" %&gt;

&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;

&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
&lt;head runat="server"&gt;
    &lt;title&gt;&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
    &lt;form id="form1" runat="server"&gt;
    &lt;div&gt;

        &lt;asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Button" /&gt;
        &lt;br /&gt;
        &lt;br /&gt;
        &lt;asp:Label ID="Label1" runat="server" Text="Label"&gt;&lt;/asp:Label&gt;

    &lt;/div&gt;
    &lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>And this is Default.aspx.cs:</p>

<pre><code>using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace BiLab
{
    public partial class _Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            Label1.Text = "Button 1 Pressed.";
        }
    }
}
</code></pre>

<p>This is my Web.Config:</p>

<pre><code>&lt;?xml version="1.0"?&gt;
&lt;configuration&gt;
  &lt;appSettings/&gt;
  &lt;connectionStrings/&gt;
  &lt;system.web&gt;
    &lt;compilation debug="false"/&gt;
    &lt;pages enableViewState="true"/&gt;
    &lt;sessionState cookieless="UseCookies" cookieName="MyWebApp" timeout="20" /&gt;
    &lt;authentication mode="Windows" /&gt;
    &lt;customErrors mode="Off"/&gt;
  &lt;/system.web&gt;
&lt;/configuration&gt;
</code></pre>
