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 8172829
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T21:54:22+00:00 2026-06-06T21:54:22+00:00

I have a Projects entity. The list of Projects is displayed in a Scaffolded

  • 0

I have a Projects entity. The list of Projects is displayed in a Scaffolded List View as shown below. The Edit-Details-Delete are ActionLinks produced by the template.Each is linked to a new controller action and loads another View

ProjectName  | Created By | Created On | Status |
-------------|------------|------------|--------|--------------------
Test Project | USER1      | 12/31/2010 |  NEW   | Edit |Details |Delete

Each Project has a status- New,Approved,Denied.
I want to add links to the list called Approve and Denied which do not load a view. They just change the status of the project. I believe these will be HTTP Post Links. I have googled and not found a good working example of this.

ProjectName  | Created By | Created On | Status |
-------------|------------|------------|--------|------------------------------------
Test Project | USER1      | 12/31/2010 |  NEW   | Edit |Details |Delete|Approve|Denied
  • 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-06-06T21:54:24+00:00Added an answer on June 6, 2026 at 9:54 pm

    You could use AJAX:

    @Ajax.ActionLink(
        "approve project", 
        "Approve", 
        new { projectId = item.ProjectId }, 
        new AjaxOptions { HttpMethod = "POST" }
    )
    

    and you will of course have a corresponding controller action that will take care of approving a project:

    [HttpPost]
    public ActionResult Approve(int projectId)
    {
        ...
    }
    

    You could also use the OnSuccess and OnFailure properties of the AjaxOptions to define respective javascript functions that will be called in case of those events.

    Needles to say that for the Ajax.* helpers to do anything useful you need to include the jquery.unobtrusive-ajax.js script to your page:

    <script type="text/javascript" src="@Url.Content("~/scripts/jquery.unobtrusive-ajax.js")"></script>
    

    and must have enabled unobtrusive AJAX in your web.config:

    <appSettings>
        <add key="ClientValidationEnabled" value="true" />
        ...
    </appSettings>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a very nested entity structure like this: DataObject > Universities (List) >
I have used Entity Framework for DAL in a few projects but in the
Using Docrine2 entities, I have a list entity, with a manytomany relationship with item.
I have one project which has RIAService with entity framework that is referenced to
We have a project that uses JPA/Hibernate on the server side, the mapped entity
I have converted an Entity framework project to use POCO objects by removing the
I have the following table structure, which is imported into an Entity Framework project:
I have a problem adding ADO.Net Entity Data Model to my existing project, or
In my project, I have 2 Entity objects (delegate for 2 tables in db)
I'm using Entity Framework in my project, and I have the problem that, once

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.