// adds support ticket to database protected void btnSubmit_Click(object sender, EventArgs e) { int ticketIdentity = SupportTicketDB.insertTicket(tbxTitle.Text, txtArea.InnerText, DateTime.Now, "Pending", ddlUrgency.SelectedValue, MemberDB.getMemberbyEmail(Session["user"].ToString()).MemberID); string ticketID; ticketID = Utility.convertIdentitytoPK("TIC", ticketIdentity); MessageSupportTicketDB.insertMemberMessage(txtArea.InnerText, DateTime.Now, SupportTicketDB.getSupportTicketbyID(ticketID), MemberDB.getMemberbyEmail(Session["user"].ToString()).MemberID); Response.Redirect("ViewSupportTicket.aspx?ticketID=" + ticketID); }
protected void btnSubmit_Click(object sender, EventArgs e) { int ticketIdentity = SupportTicketDB.insertTicket(tbxTitle.Text, txtArea.InnerText, DateTime.Now, "Pending", ddlUrgency.SelectedValue, MemberDB.getMemberbyEmail(Session["user"].ToString()).MemberID); string ticketID = "TIC"; for (int x = 0; x < 9 - ticketIdentity.ToString().Length; x++) { ticketID += "0"; } ticketID += ticketIdentity.ToString(); MessageSupportTicketDB.insertMemberMessage(txtArea.InnerText, DateTime.Now, SupportTicketDB.getSupportTicketbyID(ticketID), MemberDB.getMemberbyEmail(Session["user"].ToString()).MemberID); Response.Redirect("ViewSupportTicket.aspx?ticketID=" + ticketID); }
// insert support ticket into database protected void btnSubmit_Click(object sender, EventArgs e) { MessageSupportTicketDB.insertMemberMessage(txtMsg.InnerText, DateTime.Now, SupportTicketDB.getSupportTicketbyID(Request.QueryString["ticketID"]), MemberDB.getMemberbyEmail(Session["user"].ToString()).MemberID); Response.Redirect(Request.RawUrl); }