How to Capture ENTER Key which is pressed in TextBox?
<p>I am developing a simple chat system in ASP.NET with C# (Its a website not windows application). I am showing a chat window which contains a TextBox so that user can write his/her message in it. What i want is that when user presses ENTER key then I will be able to capture that ENTER pressed event and could call a function which will be in .cs file. How can i do that? This is the code segment from my project:</p>

<p></p>

<pre><code>    &lt;!-- Some code here --&gt;

    &lt;asp:textbox TextMode="Multiline"
    Columns="28"
    id="Textbox1"
    Rows="5"
    runat="server"
    BorderStyle="Solid"
    BorderColor="Bisque"
    class="msg-area"&gt;
    &lt;/asp:textbox&gt;

&lt;/asp:Panel&gt;
</code></pre>

<p>Thank You. </p>
