The text of this article is not in this database — only its details are. Read it on the old site: Implement Insert, Update and Delete Functionality in the WebGrid: Part 3
13 Comments
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.

keval patelPosted Nov 29, 2016, 10:30 AM
You have specified the action method method for the view page. so view error is present in it
Ravi PatelPosted Sep 27, 2016, 3:41 AM
Nice explanation
kalu singh raoPosted Jul 13, 2016, 1:45 AM
Nice...
ketan mevadaPosted Mar 28, 2016, 3:58 AM
i try it but i am getting error inside this code ViewBag.Title = "WebGrid CRUD Operations"; WebGrid grid = new WebGrid(rowsPerPage: Model.PageSize); grid.Bind(Model.It_Student, autoSortAndPage: false, rowCount: Model.TotalRows ); Main page popup i am inserted code like this <div class="modal-dialog"> @Html.Partial("~/Views/showdata.cshtml"); <!-- /.modal-content --> </div>
ketan mevadaPosted Mar 28, 2016, 3:56 AM
hello friends if i want use this grid view inside another page like inside popup or partial view then what i do?
zwe thun aungPosted Aug 19, 2015, 6:19 AM
Hi Bro, I would like to know what is that mean // setTimeout(function () { window.location.replace("WebGridCRUD"); }, 2000); // And I especially want to know about ("WebGridCRUD") coded in save script. I have trouble around above code. After save, raise error.
Gopi ChandPosted Jul 26, 2015, 2:31 AM
Great
Mehmet GocergiPosted Feb 3, 2015, 6:11 PM
Hi, How can i add @Html.DropDownList value in dynamic html table? I tried like below '<td><span>'+ '@Html.DropDownList("aa",new SelectList(ViewBag.TransUnits, "Id","UnitName"))' + '</span></td>'+ ... But it gives error in console '<td><span>'+ '<select id="aa" name="aa"><option value="3">Su Gideri</option> </select>' + Uncaught SyntaxError: Unexpected token ILLEGAL error.
Anubhav ChaudharyPosted Jul 22, 2014, 1:01 AM
It is working fine on my system, how can I identify why u are getting this problem!! Download my source code and run it, after this compare both the code and this will let u know why u are getting the error, or use the "Debugger", debugger is the main weapon to identify the bugs.
Bilal AhmedPosted Jul 21, 2014, 3:15 AM
Exactly same error, kindly help out
Siraj Ahmed MujahidPosted Jun 11, 2014, 5:56 AM
Line 5: Layout = "~/Views/Shared/_Layout.cshtml";Line 6: Line 7: WebGrid grid = new WebGrid(rowsPerPage: Model.PageSize); Line 8: grid.Bind(Model.Total_Vouchers, Line 9: autoSortAndPage: false,
Siraj Ahmed MujahidPosted Jun 11, 2014, 5:54 AM
Hi, I followed all the steps described in ur tutorial, but when i trying to run the application, its giving me an error "Object reference not set to an instance of an object" An exception of type 'System.NullReferenceException' occurred in App_Web_zv4gjlbp.dll but was not handled in user code Additional information: Object reference not set to an instance of an object.