protected void btnSend_Click1(object sender, EventArgs e) { if (Session["getme"] != null) { if (isFormGood2()) { Composer su = new Composer(); ComposeDAL ldal = new ComposeDAL(); su.subject = txtSubject.Text; su.message = txtMessage.Text; su.sender = Session["User"].ToString(); su.reciever = Session["getme"].ToString(); ldal.addMessage(su); Session["getme"] = null; lbldd.Visible = false; lblMessage.Visible = false; lblSubject.Visible = false; ddPerson.Visible = false; ddReciever.Visible = false; Label2.Visible = false; Label3.Visible = false; txtMessage.Visible = false; txtSubject.Visible = false; btnBack.Visible = false; btnSend.Visible = false; Label1.Visible = false; lblSent.Visible = true; } } else if (isFormGood()) { doSignup(); } }
public void doSignup() { Composer su = new Composer(); ComposeDAL ldal = new ComposeDAL(); su.subject = txtSubject.Text; su.message = txtMessage.Text; su.sender = Session["User"].ToString(); if (ddReciever.Enabled == false) { su.reciever = ddPerson.SelectedValue; } else { su.reciever = ddReciever.SelectedValue; } ldal.addMessage(su); lbldd.Visible = false; lblMessage.Visible = false; lblSubject.Visible = false; ddPerson.Visible = false; ddReciever.Visible = false; Label2.Visible = false; Label3.Visible = false; txtMessage.Visible = false; txtSubject.Visible = false; btnBack.Visible = false; btnSend.Visible = false; Label1.Visible = false; lblSent.Visible = true; }
public void doSignup() { Composer su = new Composer(); ComposeDAL ldal = new ComposeDAL(); su.subject = txtSubject.Text; su.message = txtMessage.Text; su.sender = Session["User"].ToString(); su.reciever = ddReciever.SelectedValue; ldal.addMessage(su); }
protected void btnSend_Click1(object sender, EventArgs e) { if (Session["getme"] != null) { if (isFormGood2()) { Composer su = new Composer(); ComposeDAL ldal = new ComposeDAL(); su.subject = txtSubject.Text; su.message = txtMessage.Text; su.sender = Session["User"].ToString(); su.reciever = Session["getme"].ToString(); ldal.addMessage(su); Session["getme"] = null; } } else if (isFormGood()) { doSignup(); } }