Cannot implicitly convert type 'Login' to 'System.Web.UI.WebControls.Login'
i have got this error on this part of code :
if (e.CurrentStepIndex == 0)
{
System.Web.UI.WebControls.Login l = (Login)Wizard1.FindControl("Login1");
if (Membership.ValidateUser(l.UserName, l.Password))
{
FormsAuthentication.SetAuthCookie(l.UserName, l.RememberMeSet);
e.Cancel = false;
}
Any Ideas?
|