J
Jon F
Hi everyone,
I have a Panel control in which I have set the DefaultButton-property to a
save-button. In this panel there's a DetailsView and, in this panel, a
TextBox control with TextMode="MultiLine" (wrapped in a
<EditItemTemplate>).
The textbox should thus allow for creating a new line using the <Enter>
key. However, if the textbox has the focus and you hit <Enter>, the
save-button is triggered instead. Even thought I can quickly press <ESC>
and then <Enter> in order to insert a new line into the textbox, the
save-button will be triggered on the server.
Is there any way to work around this?
I have a Panel control in which I have set the DefaultButton-property to a
save-button. In this panel there's a DetailsView and, in this panel, a
TextBox control with TextMode="MultiLine" (wrapped in a
<EditItemTemplate>).
The textbox should thus allow for creating a new line using the <Enter>
key. However, if the textbox has the focus and you hit <Enter>, the
save-button is triggered instead. Even thought I can quickly press <ESC>
and then <Enter> in order to insert a new line into the textbox, the
save-button will be triggered on the server.
Is there any way to work around this?