不去管它的工作现在(不知道为什么,但没关系),谢谢你们大家的帮助为什么在localhost这只是工作
我写了电子邮件,而不是登录的用户代码用户名这就是:
protected void eLogin(object sender, EventArgs e) //allowing users to login with email
{
string uid = Membership.GetUserNameByEmail(mainLogin.UserName);
mainLogin.UserName = null;
mainLogin.UserName = uid;
}
和这里的登录控制:
<asp:Login ID="mainLogin" runat="server" Orientation="Horizontal"
RememberMeText="Remember me" TitleText=""
DestinationPageUrl="~/RedirectPage.aspx"
OnLoggingIn="eLogin"
>
<CheckBoxStyle CssClass="remBox" />
<LoginButtonStyle CssClass="loginButton" />
<TextBoxStyle CssClass="loginTextBox" />
</asp:Login>
,但它只会在本地主机上,而不是ACTU工作主持人。 这是什么错误:您的登录尝试不成功。请再试一次。
我使用asp.net 3.5,在此先感谢
什么是错误? – janhartmann 2011-04-22 10:09:17
您的问题结构严重不足。究竟是不是在实际托管工作? – 2011-04-22 11:08:51
您确定您正在登录的用户在两种环境中都存在吗? – 2011-04-22 12:08:16