private testContext db = new testContext(); public List<Table1> thistable = new List<Table1>(); [HttpPost] public ActionResult Index(int Idt) { var sortthistable = from s in db.Data1 select s; sortthistable = sortthistable.OrderByDescending(s => s.Idt); thistable = sortthistable.ToList(); return View(thistable); }
@Html.ActionLink("Idt", "Index")
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)