DataClassesDataContext dab = new DataClassesDataContext(); dab.SubmitChanges();
DataClassesDataContext dab = new DataClassesDataContext(); newlog = new calllog(); newlog.shortdesc = txtshortdesc.Text; calllog_description.Text ="*****" + Page.User.Identity.Name + " " + DateTime.Now.ToString() + " ***** " + "\r\n" + calllog_description.Text; newlog.calllog_description = calllog_description.Text; newlog.calllog_id = Convert.ToInt32(txtlogid.Text); newlog.calllogrefno = calllogrefno.Text; newlog.pr_id = Convert.ToInt32(pr_id.SelectedItem.Value); newlog.st_id = Convert.ToInt32(st_id.SelectedValue); newlog.product_id = Convert.ToInt32(product_id.SelectedValue); newlog.dep_id = Convert.ToInt32(dep_id.SelectedValue); newlog.log_assigneduser = Convert.ToInt32(log_assigneduser.SelectedValue); newlog.client_id = Convert.ToInt32(DropDownList1.SelectedValue); newlog.log_datetime = System.DateTime.Now; newlog.log_user_id = this.Page.User.Identity.Name; newlog.calllog_internal = calllog_internal.Checked; newlog.notify_client = true; newlog.notify_practise = true; newlog.ct_id = Convert.ToInt32(ct_id.SelectedValue); newlog.resolved = false; dab.calllogs.InsertOnSubmit(newlog); dab.SubmitChanges();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)