Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Field not showing up in View. ASP.NET MVC 2

Posted on 2014-03-02
2
Medium Priority
?
433 Views
Last Modified: 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

Thanks
0
Comment
Question by:Niall292
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 

Accepted Solution

by:
Niall292 earned 0 total points
ID: 39899405
I did it, maybe not the best way but I was able to pass the value into the hidden field using jquery
0
 

Author Closing Comment

by:Niall292
ID: 39899406
It got the necessary response
0

Featured Post

Build and deliver software with DevOps

A digital transformation requires faster time to market, shorter software development lifecycles, and the ability to adapt rapidly to changing customer demands. DevOps provides the solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
This article discusses how to implement server side field validation and display customized error messages to the client.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question