Hi!
Apparently the error occurs when you cast 'this', which seems to be of type "'ASP.memberlogin_aspx", to "Login", which compiler understood as "'System.Web.UI.WebControls.Login" because you probably have "using System.Web.UI.WebControls;" statement at the top of the source file.
If by "(Login)this" casting you mean casting to a type other than 'System.Web.UI.WebControls.Login, then you either may want to provide complete type name of the "Login" class that includes namespace, or, if Login type is actually a page (public partial class Login : System.Web.UI.Page), then you may consider dropping "using 'System.Web.UI.WebControls;" statement or replacing it with alias "using WC=System.Web.UI.WebControls;" statement to remove ambiguity between Login page type and Login control type.
Please let us know if this helped.
Best regards,
UltiDev Team.
Please donate at
http://www.ultidev.com/products/Donate.aspx to help us improve our products.