using System; using System.Collections; using System.ComponentModel; using System.Data; using System.Drawing; using System.Web; using System.Web.SessionState; using System.Web.UI; using System.Web.UI.WebControls Using system.Web.ui.htmlcontrols;
Namespace Objlogin.quicklyBuildModel {///
Private user user; private void page_load (object sender, system.eventargs e) {// Place user code here to initialize page // this.checkloginandSetPage (); this.user = new user ();}
#Region Web Form Designer Generated Code Override Protected Void OnNit (Eventargs E) {// // Codegen: This call is required for the ASP.NET Web Form Designer. // InitializeComponent (); base.onit (e);} ///
private void btnUserRegister_Click (object sender, System.EventArgs e) {if (this.user.ReceiveUserInfo (true)) {if (this.user.Register (false)) Response.Write ( "registered successfully"); else ShowErrorMessage () Else showerrorMessage ();
}
///
private void btnModifyUser_Click (object sender, System.EventArgs e) {if (this.user.ReceiveUserInfo (true)) {if (this.user.Update (true)) Response.Write ( "Update Success"); else this.ShowErrorMessage ();} Else this.showerrorMessage ();
private void btnDelUser_Click (object sender, System.EventArgs e) {if (this.user.ReceiveUserInfo (true)) {if (this.user.Delete (true)) Response.Write ( "deleted successfully"); else this.ShowErrorMessage ();} Else this.showerrorMessage ();
private void btnSearchUser_Click (object sender, System.EventArgs e) {if (this.user.ReceiveUserInfo (true)) {if (this.user.SeachUser (true)) Response.Write ( "found"); else this.ShowErrorMessage ();} Else this.showerrorMessage ();}}}}}