Field not showing up in View. ASP.NET MVC 2
Posted on 2014-03-02
This has got me stumped, and just when I thought I was in a good place.
I am writing an edit page using MVC 2 and got everything working great so far.
Got a table full of records and at the end of each row there are 2 buttons Delete and Edit. When I pressed Edit at the start the page opened and all the required editable fields were there but I then noticed I had no way to say what record to update (I wasn't capturing the record ID field) I know stupid school boy error.
So I added the record ID to the class and built it in to the JQuery function and made the changes to the control and I watched it going throw from the button click to the control and watched all the values going through but when it reaches the view it's not there, I am bringing it as model.ID and have gave the Model.ID a value in the control but it never reaches the view.
Can you help to figure out why.
Any help greatly appreciated