Event not getting fired
<p>I have a form in which i have a text box for email and many other textboxes.
The email has a functionality that it should not match with previously entered email but it can be blank.</p>

<p>I fired my code at the text change event of the textbox and it is working fine.
But when i click on the update button without taking my cursor off the textbox.
The click of the button is not working.Only textchanged event of textbox fires nothing else happen.</p>

<p>Please help me with the same.</p>

<pre><code> string emailid = txtemail.Text;
var emailcnt2 = (from r in context.Customers
                                 where r.Email == Convert.ToString(emailid)
                                 select r).SingleOrDefault();

                if (emailcnt2 != null)
                {
                    lblemail.Text = "Email already exists for customer " + emailcnt2.FirstName + " " + emailcnt2.LastName + "";
                    //  emaildisplay.Attributes.Add("style", "display:block;");
                    txtemail.Focus();
                }
</code></pre>
