Click here to Skip to main content
16,014,706 members

Comments by vineeth raju (Top 66 by date)

vineeth raju 20-Jul-15 3:53am View    
Still its not working. So i used

location.href = '@Url.Action("LoadNew","ManageEmployeNumber")?drop_compny=' + drop_compny + '&drop_survey=' + drop_survey + '';

----------------------------------------------------

[HttpGet]
public ActionResult LoadNew(int drop_compny, int drop_survey)
{

List<tblEmployeetarget> lis_emp_targt = new List<tblEmployeetarget>();
lis_emp_targt = db.tblEmployeetargets.Where(s => s.COMP_ID == drop_compny && s.SURVEY_ID == drop_survey).ToList();

List<tblDepartment> lis_dept = new List<tblDepartment>();
lis_dept = db.tblDepartments.Where(s => s.CompID == drop_compny).ToList();

var joined = (from dep in lis_dept
join emp in lis_emp_targt
on dep.DeptID equals emp.DEPT_ID // join on some property
//into grouping
//from emp in grouping.DefaultIfEmpty()
select new mang_emp { tblDepartment = dep, tblEmpTarget = emp }).ToList();


TempData["drop_compny"] = drop_compny;
TempData["drop_survey"] = drop_survey;

TempData["lis_dept"] = joined;

return RedirectToAction("Load");
}
vineeth raju 20-Jul-15 0:30am View    
I have used this one.
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.4.3/angular.min.js"></script>
vineeth raju 17-Jul-15 7:52am View    
I tried the same but I am getting console error in $http.
vineeth raju 17-Jul-15 7:45am View    
Still its not working for me.. Can you please explain that?
vineeth raju 17-Jul-15 7:42am View    
Which js is used for $http. Angular js?