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 AnswersKnow the answer? Post it. Somebody with the same question will find it here. Answer a question in the forums and earn +20 SHARP for every answer. See unanswered questionsForums Top experts DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister |

Nitin SontakkeRank #264 · 9.6K reputationPosted Aug 8, 2016, 9:26 PM EDT
suman goud159 reputationPosted Aug 8, 2016, 9:39 PM EDT
Nitin SontakkeRank #264 · 9.6K reputationPosted Aug 8, 2016, 9:44 PM EDT
Vinay SinghRank #604 · 4K reputationPosted Aug 8, 2016, 11:07 PM EDT
suman goud159 reputationPosted Aug 9, 2016, 2:53 AM EDT
Nitin SontakkeRank #264 · 9.6K reputationPosted Aug 9, 2016, 3:03 AM EDT
Vinay SinghRank #604 · 4K reputationPosted Aug 9, 2016, 3:25 AM EDT