Solved

MVC how to name input buttons

Posted on 2010-08-12
1
724 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Please explain purpose of GZIP 4 59
linq, c# 8 34
make control visible based off other control value 7 18
How to set focus on a dynamic control 18 24
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
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…

733 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