Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6021309
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T03:41:39+00:00 2026-05-23T03:41:39+00:00

I am new to ASP.NET MVC and I have a question regarding viewing entity

  • 0

I am new to ASP.NET MVC and I have a question regarding viewing entity relationships.

Say I have an entity called ‘Person’. This holds the usual data relating to a person (Name, Email, etc). I also have a ‘Notes’ entity. Under EF, a ‘Person’ can have many ‘Notes’.

I have a Person controller where I can view and preform CRUD operations on a Person object.
I can show the notes in the view easily but what is the best way to allow a user to add/edit/delete these notes from the Person view? I am hoping to do this using AJAX and not have the user move to a completely different page to add/edit/delete a note.

Thanks in advance,
ViperMAN.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T03:41:40+00:00Added an answer on May 23, 2026 at 3:41 am

    When they edit a note, popup a jQuery dialog pointing to your URL to edit or have a separate Ajax.BeginForm() on the page that the details go into. When they finish the edit call a method to refresh the notes.

    So:
    1. In your Notes grid (or whatever)
    you have an edit link for each note called “edit”
    this link looks something like the following:

    This one actually uses ‘notes’ : )

    http://www.iwantmymvc.com/dialog-form-with-jqueryui-and-mvc-3

    ASP.NET MVC | Problem about showing modal dialog using jQuery dialog widget

    ASP.NET MVC modal dialog/popup best practice

    Also beware of this scenario for multiple links:
    MVC3 – Only first row link works well with Jquery Modal Dialog

    Now the urls you use to populate the dialogs would be for example
    /Note/Edit/10
    One thing to note – jQuery validation needs to know about these new items that are being loaded via ajax into the DOM , so in your partial view you need to tell jQuery validation to include the new items – I’ll edit in a bit to add this, have to grab it from another machine.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm new to ASP.NET MVC so this may be a stupid question. I have
I'm new to ASP.NET MVC so this could have an obvious answer. Right now
I am using ASP.NET MVC 3. I have an action method called New. When
I'm a little new to asp.net mvc and I have a question (very basic).
I'm still quite new to ASP.Net MVC, so maybe this is a stupid question.
I'm fairly new to asp.net mvc and I have a question. Example model: public
I have a new asp.net mvc project and i am trying to figure out
I am new to asp.net mvc and i have problems that i think i
I have created the following project structure for my new asp.net mvc project any
i'm new in the asp.net mvc development and have a quastin about the standart

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.