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

  • Home
  • SEARCH
  • 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 560689
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T12:22:12+00:00 2026-05-13T12:22:12+00:00

i see the convention is to have the post action be the same name

  • 0

i see the convention is to have the post action be the same name as the page but to put a:

[AcceptsVerb.HTTPVerbs.Post]

on the action method.

Is there anything wrong with have the post action be another name.

So if i have a page called Edit, the Edit action will display that page, while the “Update”action will post the edit changes. This seems clearer to me as compared to having the Edit “Get” and the Edit “Post”

wanted to get peoples thoughts on this if this is purely a convention thing or is there a right and wrong here?

  • 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-13T12:22:13+00:00Added an answer on May 13, 2026 at 12:22 pm

    I believe it’s purely convention and there is nothing wrong with having different post action names.

    The MVC default is to return a view with the same name as the action and the assumption is that you will want to return the same view whether you’re getting or posting.
    Also, changing the action name generally changes the URL, but if you don’t care about that then go nuts with your action names.
    I’ve used combinations of action names/purposes, depending on what seemed to make sense at the time.

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

Sidebar

Related Questions

I have a web page containing a login form which loads via HTTP, but
I have a Rails controller with a create method, and I want to POST
I have a list and i am adding a value using add(int,Object) method but
See code below, for some reason it only works when I put a breakpoint
I'm not really sure how to express this, but one pattern I often see
I'm sooo close... but I don't quite see the connection from the upload view
I have written a very simple socket server. It listens in post 63254. First
In my multithreaded application and I see heavy lock contention in it, preventing good
(see here for the problem I'm trying to solve) How do you get hibernate
See title. By lightweight markup I mean something like markdown or wikitext.

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.