When i press Enter in Textbox txtHistory2 so update data
My mind is: I do not want to press enter in the textbox txtHistory2 the event update. I just want people to click on button Update to update data
<EditFormSettings EditFormType="Template"> |
<FormTemplate > |
<table cellspacing="1" cellpadding="1" Width="100%" border="0"> |
<tr> |
<td> |
</td> |
<td> |
</td> |
</tr> |
<tr> |
<td width="100"> |
Description</td> |
<td> |
<asp:TextBox ID="txtHistory2" runat="server" Rows="10" SkinID="TextHistory" Text='<%#Bind("HistoryText")%>' |
TextMode="MultiLine" ValidationGroup="Gro_History_GV" ></asp:TextBox><br /> |
<asp:RegularExpressionValidator ID="txtConclusionValidator_GV" runat="server" ControlToValidate="txtHistory2" |
Display="Dynamic" EnableClientScript="False" SetFocusOnError="True" Text="very long" |
ValidationExpression="^[\s\S]{0,3500}$" ValidationGroup="Gro_History_GV"></asp:RegularExpressionValidator><br /> |
</td> |
</tr> |
</table> |
<table style="width: 100%"> |
<tr> |
<td align="right" colspan="2"> |
<asp:Button ID="cmdUpdate" Text='<%# (Container is GridEditFormInsertItem) ? "Insert" : "Update" %>' |
runat="server" CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>' ValidationGroup="Gro_History_GV"> |
</asp:Button> |
<asp:Button ID="cmdClose" Text="Close" runat="server" CausesValidation="False" CommandName="Cancel"> |
</asp:Button> |
</td> |
</tr> |
</table> |
</FormTemplate> |
<PopUpSettings Modal="True" Width="600px" /> |
</EditFormSettings> |