Tag: down

My case: It’s a standard register form created in a SharePoint WebPart (but this error could happen even if you’re not using SharePoint). When I submit the form, sometimes I loose the information of DropDowns (but not the information of textboxes) and it seems to happen randomly. I checked the packages sent with Wireshark and […]
In order to avoid ENTER key in your asp:TextBox you’ve to add onkeydown event and control it, like this: <asp:TextBox ID="myTextBox" runat="server" onkeydown="return (event.keyCode != 13);"></asp:TextBox>