Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

MVC how to name input buttons

Posted on 2010-08-12
1
723 Views
Last Modified: 2013-11-08
I have an input button in an MVC view

<input type="submit" value="SubmitExistingResponseTable" title="Submit" />

that executes a controller ActionResult called "SubmitExistingResponseTable".

I want to rename the input button to be displayed as Submit but how can I do this?  


 I still want to call actionresult method "SubmitExistingResponseTable"

0
Comment
Question by:mugsey
1 Comment
 
LVL 27

Accepted Solution

by:
nmarun earned 500 total points
ID: 33421983
Here's how you do it. You define a form tag with the action and controller details that the button needs to post back to:

<% using(Html.BeginForm("SubmitExistingResponseTable")) %>
<% { %>
            <input type="submit" value="Submit" />
<% } %>

Arun
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article you'll learn how to use Ajax calls within your CodeIgniter application. To explain this, I'll illustrate how to implement a simple contact form to allow visitors to send you an email through your web site.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

861 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question