textbox.text always returning empty string instead of user's entered text
<p>I am very surprised to see last night my code was working fine and the next day suddenly my textbox.text always have empty string..<br>
My code is:</p>



<pre class="lang-html prettyprint-override"><code> Name of Event* :

    &lt;br /&gt;
    &lt;asp:TextBox ID="TextBox1" runat="server"&gt;&lt;/asp:TextBox&gt;
    &lt;br /&gt;
</code></pre>

<p>Code behind:</p>

<pre><code>protected void Page_Load(object sender, EventArgs e) {
} 

protected void create_Click(object sender, EventArgs e) {

    if (!object.Equals(Session["UserLoginId"], null)) { 

        int mid = 0; 
        int cid = 0; 
        bool valid = true;

        if (this.TextBox1.Text == "") {

            error.Text = "&lt;p style='color:red'&gt;Marked Fields are compulsory!!&lt;/p&gt;"; 

        }

        else { 
            .... // database insert .... 
        }
</code></pre>

<p>I am always ending up with an error.text value.</p>

<p>Why?</p>
