我已经设置了 DestinationPageUrl属性,可是点击登录后,仍然停留在页面:http://localhost:4669/login.aspx?ReturnUrl=%2fManage%2fManMember.aspx
代码如下:
<asp:Login ID="Login1" runat="server" BackColor="#EFF3FB" BorderColor="#B5C7DE" BorderPadding="4" BorderStyle="Solid" BorderWidth="1px" CssClass="style1" DestinationPageUrl="~/Manage/ManMember.aspx" Font-Names="Verdana" Font-Size="0.8em" ForeColor="#333333" Height="152px" PasswordRecoveryIconUrl="~/Images/rePwd.jpg" PasswordRecoveryUrl="~/Manage/LkfRePassword.aspx" Width="163px" PasswordRecoveryText="找回密码"> <TextBoxStyle Font-Size="0.8em" /> <LoginButtonStyle BackColor="White" BorderColor="#507CD1" BorderStyle="Solid" BorderWidth="1px" Font-Names="Verdana" Font-Size="0.8em" ForeColor="#284E98" /> <InstructionTextStyle Font-Italic="True" ForeColor="Black" /> <TitleTextStyle BackColor="#507CD1" Font-Bold="True" Font-Size="0.9em" ForeColor="White" /> </asp:Login>
在Authenticate 事件里跳转