Say I have one full-page form, but there are two or more events in the form that must be completed when submitted: LoginandRegister
Site.Master:
<%@ Master Language="C#" AutoEventWireup="true"
EnableViewState="true" CodeBehind="Site.Master.cs"
Inherits="Site.SiteMasterPage" %>
<!doctype>
<html>
<head runat="server">
<%-- stuff --%>
</head>
<body>
<form ID="MainForm" action="" runat="server">
<asp:Login id="LoginControl" runat="server" />
<asp:CreateUserWizard id="RegisterControl" runat="server" />
</form>
</body>
</html>
If my cursor is focused inside input type="text"for asp:Login, and I pressed Return(with javascript turned off), the page is sent, but I have not logged in.
The same thing happens when I try to register (by filling out CreateUserWizard and pressing a key Returninstead of actually clicking on "Register", triggering some kind of event)
Is there any solution other than JavaScript to get the key Returnto submit the correct, currently focused part of the form?