protected void ddlFaculty_Init(object sender, EventArgs e) { if (ddlFaculty.Items.Count == 0) { dt = new DataTier(); fac = dt.ReadFaculties(); ddlFaculty.DataSource = fac; ddlFaculty.DataValueField = "ID_Facultate"; ddlFaculty.DataTextField = "Nume_facultate"; ddlFaculty.DataBind(); ddlDepartment_Create(); ddlSpecialization_Create(); } }
protected void btnSignIn_Click(object sender, EventArgs e) { DataTier dt = new DataTier(); string result=dt.CheckUser(txtLoginEmail.Text, txtLoginPassword.Text); if(result.Equals("WrongUser")) { divMessageArea.Visible = true; lblMessage.Text = "Utilizatorul nu exista. Va rugam sa reincercati."; } else if (result.Equals("WrongPassword")) { divMessageArea.Visible = true; lblMessage.Text = "Parola nu este corecta. Va rugam sa reincercati."; } else if(result.Equals("Corect")) { this.Server.Transfer("MemberProfileForm.aspx"); } System.Diagnostics.Debugger.Break(); }
public Bussiness() { dt = new DataTier(); }