-
Wrap the textbox inside
asp:Panel
tags -
Hide a Button that has a click event that does what you want done and give the
<asp:panel>
aDefaultButton
Attribute with the ID of the Hidden Button.
<asp:Panel runat="server" DefaultButton="Button1">
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<asp:Button ID="Button1" runat="server" style="display:none" OnClick="Button1_Click" />
</asp:Panel>