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
Solved

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

Posted on 2014-03-02
2
423 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
  • 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

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 …
Introduction If you're like most people, you have occasionally made a typographical error when you're entering information into an online form.  And to your consternation, the browser remembers the error, and offers to autocomplete your future entr…
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…

839 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