View Single Post
  #1 (permalink)  
Old January 22nd, 2009, 07:13 PM
fh84 fh84 is offline
Authorized User
 
Join Date: Dec 2008
Location: , , Greece.
Posts: 56
Thanks: 1
Thanked 1 Time in 1 Post
Send a message via MSN to fh84
Default 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?