how should i pass a variable or preferably session data from view to controller?
What i need is to store this
Page.User.Identity.Namein a string variable or pass it as it is to the below controller so i can use the name passed in my query :
public IList<Employee> ViewAll()
{
var emps = from e in _dataContext.Employees
select e ;
return emps.ToList();
}
Thanks..

New Topic/Question
Reply



MultiQuote





|