protected void Button1_Click(object sender, EventArgs e) { string str; str = Request.QueryString["vdid"]; int id = Convert.ToInt32(str); Hashtable data2 = new Hashtable(); data2.Add("ticket_id",Session["compid"]); data2.Add("desc", txttaskdesc.Text); data2.Add("pk", id); data2.Add("dbname", "vendor"); bll helptakt = new bll(); helptakt.inshelptas(data2); Hashtable data4= new Hashtable(); data4.Add("ticket_id",Session["compid"]); data4.Add("ticket_status","Escalate to Help Desk"); bll comphelp = new bll(); comphelp.upcomphelp(data4); }
protected void rbyespart_CheckedChanged(object sender, EventArgs e) { if (rbyespart.Checked == true) { lbyespar.Visible = true; lbnopart.Visible = false; if (Session["designation"].ToString() == "Shift engg") { lbyespar.Visible = true; lbnopart.Visible = false; } Hashtable data4 = new Hashtable(); data4.Add("ticket_id", txtticketid.Text ); data4.Add("ticket_status", "Escalate to shift engineer"); cbstatus.SelectedValue = "Escalate to shift engineer"; bll comphelp = new bll(); comphelp.upcomphelp(data4); } }
protected void cbstatus_SelectedIndexChanged(object sender, EventArgs e) { string str4; str4 = Request.QueryString["Ticketid"]; int id = Convert.ToInt32(str4); Hashtable data = new Hashtable(); data.Add("ticket_status", cbstatus.SelectedValue); data.Add("ticket_id", id); //Hashtable feedmail = new Hashtable(); bll statusup = new bll(); //feedmail = statusup.upcomphelp(data); }
protected void cbstatushelp_SelectedIndexChanged(object sender, EventArgs e) { string str4; str4 = Request.QueryString["Ticketid"]; int id = Convert.ToInt32(str4); Hashtable data = new Hashtable(); data.Add("ticket_status", cbstatushelp.SelectedValue); data.Add("ticket_id", id); bll statusup = new bll(); statusup.upcomphelp(data); if (cbstatushelp.SelectedValue.ToString() == "Close") { Hashtable feedmail = new Hashtable(); bll fm = new bll(); feedmail = fm.feedbackmail(id); System.Web.Mail.MailMessage mail = new System.Web.Mail.MailMessage(); mail.From = "*****@*****.**"; mail.To = feedmail["emailid"].ToString(); mail.Subject = "Feedback"; mail.BodyFormat = System.Web.Mail.MailFormat.Html; mail.Body = "<html><body><br><br>Dear Client,<br><br>IFLCM would like to invite you to participate in a survey to tell us about your experiences with IFLCM.<br><br> The survey will take about 5 minutes to complete and can be accessed by clicking on the link below.<br><br>" + feedmail["body"].ToString() + " <br><br>Your feedback is very important, as the results of this survey will help us develop and offer better services to you, and other clients in the future. <br><br>Thank you in advance for your participation! <br><br> Please note: all of your answers are completely anonymous and confidential.<br><br> <br> Sincerely,<br> IFLCM Team </body></html>"; System.Web.Mail.SmtpMail.SmtpServer = "smtp.gmail.com"; //System.Web.Mail.SmtpMail.SmtpServer = "smtp.mail.yahoo.com"; mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1"); mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", "*****@*****.**"); mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", "cmsiflcm"); // - smtp.gmail.com use port 465 or 587 mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpserverport", "465"); //mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpserverport", "25"); mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpusessl", "true"); try { //System.Web.Mail.Send(mail); System.Web.Mail.SmtpMail.Send(mail); // Response.Write("Mail is Sent..!!"); } catch (Exception ex) { //return ex.Message; // Response.Write("Error - " + ex.Message); } } }
protected void cbstatus_SelectedIndexChanged(object sender, EventArgs e) { int id = Convert.ToInt32(txtticket_id.Text); Hashtable data = new Hashtable(); data.Add("ticket_status", cbstatus.SelectedValue); data.Add("ticket_id", id); //Hashtable feedmail = new Hashtable(); bll statusup = new bll(); //feedmail = statusup.upcomphelp(data); }