throw new Exception(e.Message, e); } finally { if (con.State == ConnectionState.Open) { con.Close(); } } return resources; } } } } Kasutajatunnuste hoidmine andmebaasis - MembershipProvider using System; using System.Data; using System.Data.SqlClient; using System.Configuration; using System.Web; using System.Web.Security; public class KasutajaProvider : MembershipProvider { #region abstraktsed meetodid ja propertid, mis tuleb kindlasti realiseerida public override string ApplicationName { get { throw new Exception("The method or operation is not implemented."); } set { throw new Exception("The method or operation is not implemented."); } }
Message, e); } finally { if (con.State == ConnectionState.Open) { con.Close(); } } return resources; } } } } Kasutajatunnuste hoidmine andmebaasis - MembershipProvider using System; using System.Data; using System.Data.SqlClient; using System.Configuration; using System.Web; using System.Web.Security; public class KasutajaProvider : MembershipProvider { #region abstraktsed meetodid ja propertid, mis tuleb kindlasti realiseerida public override string ApplicationName { get { throw new Exception("The method or operation is not implemented."); } set { throw new Exception("The method or operation is not implemented."); } } public override bool ChangePassword(string username, string oldPassword, string