Solved

MVC how to name input buttons

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Hangfire / asp.net sample 3 27
comparing string in C# 3 33
Why, and when, to use Windows Workflow 1 17
Data Saving 5 24
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
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 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…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

708 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now