Hi,
I have a table employee with Id,empname,salary,dept
I have creted and added the table in the application using Database fistmethod of EF.
I have populated id and empname in dropdownlist using
following code
public ActionResult Index()
{
var k = new SelectList(db1.MySkills.ToList(), "id", "EmpName");
ViewData["DBMySkills"] = k;
return View();
}
View
@Html.DropDownList("mySkills", ViewData["DBMySkills"] as SelectList, "Please Select an Employee" )
this is working fine.
my requirement is when I selects a name from dropdown ,I want to display id,empname,salary,dept in a table format.
is it possible other than jquery
Regards
Baiju