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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T06:39:13+00:00 2026-05-27T06:39:13+00:00

I Have this in a view in an area <form action=’@Url.Action(/DeleteCoverage)’></form> but this gives

  • 0

I Have this in a view in an area

<form action='@Url.Action("/DeleteCoverage")'></form>

but this gives only the following html

<form action=''></form>

but the following code

@using (Html.BeginForm("DeleteCoverage", "Coverage", new { area = "Coverage" },      FormMethod.Post, new { id = "delform" })) 

gives html

 <form action="/Coverage/DeleteCoverage/af361feb-1818-430b-803c-e332a162b0e2" id="delform" method="post">

I get this HTML only if i add a route for this method. Other wise it just becomes action=""

Why i am not getting proper HTML if I don’t add route?

  • 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-27T06:39:14+00:00Added an answer on May 27, 2026 at 6:39 am

    You are incorrectly using the Url.Action helper. This helper has several overloads and expects you to pass action, controller, route values, … Currently you are passing /DeleteCoverage which is invalid action name (action names cannot start with /).

    So pick one of the overloads and use it correctly:

    <form action="@Url.Action("DeleteCoverage", "Coverage", new { area = "Coverage" })"></form>
    

    Oh and by the way you should probably use Html.BeginForm to generate your form tags instead of hardcoding them.

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

Sidebar

Related Questions

I have this view @model IEnumerable<ViewModelRound2> ... <snip> ... @{ using (Html.BeginForm(new { round1Ring3Bids
I have this view (DetailsContainer, first class in code section of this question) with
I have this Haml view: !!! strict %html{:xmlns => http://www.w3.org/1999/xhtml} %head %meta{:content => text/html;
I have this code in my view: echo form_label('State', 'state'); $options = array( 'No
I have used this custom grid view in my code, and I want to
In my view, I have a form I want to dynamically render. This form
I have form area in my view. If I click button A , I
i have the following code that opens a dialogue with a View. $('.bulkEditlink').click(function ()
So, I have this code in a partial called _form.html.erb in app/views/posts : <%=
So, I have this css code to format a html page. The problem is

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.