protected void CreateBtn_Click(object sender, EventArgs e) { TemplatesRepository tr = new TemplatesRepository(); int ServiceLineID = Convert.ToInt32(ServiceLineDDL.SelectedValue); int NotificationId = Convert.ToInt32(NotificationDDL.SelectedValue); string Templatename = TemplateName.Text; String name = Context.User.Identity.Name; string id = tr.Getid(name); int ApprovalStatus = 1; tr.Insert(Templatename, id, ServiceLineID, NotificationId, ApprovalStatus); createlbltxt.Text = "Template Created,Now insert the url"; uploadlbltxt.Text = ""; }