修改Login.ascx
C:\inetpub\wwwroot\DNN\DesktopModules\AuthenticationServices\ActiveDirectory\Login.ascx
主要是增加一個Panel 並且設定好 DefaultButton="cmdLogin"
例:
<div class="dnnForm dnnLoginService dnnClear">
<asp:Panel ID="pnlLogon" runat="server" DefaultButton="cmdLogin" Width="100%" >
<div class="dnnFormItem">
<asp:label id="plUsername" AssociatedControlID="txtUsername" runat="server" resourcekey="Username" CssClass="dnnFormLabel" />
<asp:textbox id="txtUsername" runat="server" />
</div>
<div class="dnnFormItem">
<asp:label id="plPassword" AssociatedControlID="txtPassword" runat="server" resourcekey="Password" CssClass="dnnFormLabel" />
<asp:textbox id="txtPassword" textmode="Password" runat="server" />
</div>
<div class="dnnFormItem" id="divCaptcha1" runat="server" visible="false">
<asp:label id="plCaptcha" AssociatedControlID="ctlCaptcha" runat="server" resourcekey="Captcha" CssClass="dnnFormLabel" />
</div>
<div class="dnnFormItem" id="divCaptcha2" runat="server" visible="false">
<dnn:captchacontrol id="ctlCaptcha" captchawidth="130" captchaheight="40" runat="server" errorstyle-cssclass="dnnFormMessage dnnFormError" />
</div>
<p><asp:LinkButton id="cmdLogin" resourcekey="cmdLogin" cssclass="dnnPrimaryAction" text="Login" runat="server" /></p>
</asp:Panel>
</div>
沒有留言:
張貼留言