Solved

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

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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

What is a Lightbox? A Lightbox is the effect you see when you click, for example, an image and the screen fades out and up pops the same image but in its full size dimensions. There are lots of Lightbox effects for jQuery. Problem is they are a…
Introduction A frequently asked question goes something like this:  "I am running a long process in the background and I want to alert my client when the process finishes.  How can I send a message to the browser?"  Unfortunately, the short answer …
The viewer will learn how to dynamically set the form action using jQuery.
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)

707 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now