Author: rivdiv | Posted on: 11/22/2009 2:49:07 PM | Views : 253

Hi everyone,
I have a login control, and I have code to authenticate it.
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Data; using System.Data.SqlClient; using System.Configuration; using System.Web.SessionState; using System.Web.Security; public partial class StudentLogin : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } string strLoginErrorMsg; protected void Login1_Authenticate(object sender, AuthenticateEventArgs e) { Boolean bauthenticated = false; bauthenticated = isValidUser(Login1.UserName, Login1.Password); if (bauthenticated) { e.Authenticated = true; } else { e.Authenticated = false; } } protected void Login1_LoginError(object sender, EventAr ...

Go to the complete details ...