Posted on: 7/25/2015 5:32:49 AM | Views : 802

I'm trying to move the log in of MS website template from a page to a modal pop up which sits in Site.Master.  The original code has the following logic:
protected void LogIn(object sender, EventArgs e) { if (IsValid) { // Validate the user password var manager = Context.GetOwinContext().GetUserManager<ApplicationUserManager>(); var signinManager = Context.GetOwinContext().GetUserManager<ApplicationSignInManager>(); .... } } When I move this chunk of code from original page to Site.Master, I got "
Error 3 The name 'IsValid' does not exist in the current context C:\Users\Admin\Documents\Visual Studio 2013\Projects\WingtipToys\WingtipToys\Site.Master.cs 127 17 WingtipToys"
How can I fix it?

Go to the complete details ...