public ActionResult Getdept() { int deptno = int.Parse(Request.Form["txtdeptno"]); List <EMPDATA> l = DBoperations.Getdept(deptno); return(View("getDeptData", l)); }
public ActionResult showdata() { int deptno = int.Parse(Request.QueryString["d"]); ViewBag.l = list; List <EMPDATA> l = DBoperations.Getdept(deptno); return(View("getDepts", l)); }
public ActionResult radiobtn() { dlist = DBoperations.getDepts(); ViewBag.d = dlist; if (Request.Form["txtsd"] != null && Request.Form["txted"] != null) { DateTime start = DateTime.Parse(Request.Form["txtsd"]); DateTime end = DateTime.Parse(Request.Form["txted"]); l = DBoperations.Empdate(start, end); ViewBag.list = l; } if (Request.Form["ddldeptno"] != null) { int deptno = int.Parse(Request.Form["ddldeptno"]); l = DBoperations.Getdept(deptno); ViewBag.list = l; } return(View("Index")); }