public ActionResult Details(string id)
{
sample styles = db.samples.Single(x => x.AccNo == id);
return View(styles);
}
I want to display data based on AccNo(Value)
localhost:1652/Home/Details/123abc
but i am getting this error
what is the mistake in my code
ERRor:
An exception of type 'System.InvalidOperationException' occurred in System.Data.Linq.dll but was not handled in user code