am getting error when am binding data to table from database
An exception of type 'System.ArgumentException' occurred in System.Web.Mvc.dll but was not handled in user code
Additional information: Value cannot be null or empty.
my controller
var data = new List();
TestDemoEntities db = new TestDemoEntities();
data = db.Accounting_PendingBills.Where(x=>x.Party=="86").ToList();
return View(data);
view page
@model IEnumerable
@using System.Web.Mvc;
@using AccountsPageLayout.Models;
@{
ViewBag.Title = "pendings";
Layout = null;
}
| Customer | Amount | Pendings | Pending Value | Pending Adjusted | Account Name |
|---|---|---|---|---|---|
| @Html.TextBox("", emp.Amount) | @Html.TextBox("", emp.Amount) | @Html.TextBox("", emp.Amount) | @Html.TextBox("", emp.Amount) | @Html.TextBox("", emp.Amount) | } 7 RepliesKnow the answer? Post it — somebody with the same question will find it here. Sign in to answer this question It is the same account you read, post and publish with — and you will come straight back to this page. |
Vinay SinghPosted Aug 9, 2016, 7:25 AM
Nitin SontakkePosted Aug 9, 2016, 7:03 AM
suman goudPosted Aug 9, 2016, 6:53 AM
Vinay SinghPosted Aug 9, 2016, 3:07 AM
Nitin SontakkePosted Aug 9, 2016, 1:44 AM
suman goudPosted Aug 9, 2016, 1:39 AM
Nitin SontakkePosted Aug 9, 2016, 1:26 AM