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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T07:31:08+00:00 2026-06-11T07:31:08+00:00

Im new to asp .net mvc3. I have a requirement that i post a

  • 0

Im new to asp .net mvc3. I have a requirement that i post a form to a url say “www.abc.com/asa” . I have added a submit button to my application. But every time i click the button, form gets submitted to corresponding controller. How can i post to my required url?

  • 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-11T07:31:09+00:00Added an answer on June 11, 2026 at 7:31 am

    Normally in mvc we follow below convention:

    [httpGet] //default not to mention
    public ActionResult Index()
    {
        // Todo code here
    }
    
    [httpPost]
    public ActionResult Index(FormCollection collection)
    {
       // Form submit here, all form data available here
    }
    

    But in your case you may write following in your view:

    @using (Html.BeginForm("ActionName", "Controller", "FormMethod", "HTML Attributes"))
    {
       // Here Controller: it defines whose actionmethod need to be called when form get submitted.
    }
    

    EX:

    @using(Html.BeginForm(null, null, FormMethod.Post, new {@action="http://www.abc.com/asa"})
    {
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In Asp.net mvc3 razor I have: Ajax.ActionLink(Hello world, Hello, Say, new RouteValueDictionary(new { word
i have a problem with the asp.net MVC3. when i create a new project
With ASP.NET MVC3 (Razor) I have a simple page that loads a jQuery UI
Environment: ASP.NET MVC3 C# Say I have some repository (semi-psuedo): public interface IRepository {
I have some C# code in my ASP.NET MVC3 project that's throwing an exception
I'm playing around with using ASP.NET MVC3 and have a very simple site that
Assume we have an ASP.NET MVC3 Web site that makes use of Entity Framework
I have an Asp.Net MVC3 application that use embedded RavenDB to store data. The
I have develop small Asp.net MVC3 application using Telerik rad Controls with in that
I'm new in asp.net mvc3 programming and I'm trying to build a specific form.

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.