Solved

MVC how to name input buttons

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

Network it in WD Red

There's an industry-leading WD Red drive for every compatible NAS system to help fulfill your data storage needs. With drives up to 8TB, WD Red offers a wide array of solutions for customers looking to build the biggest, best-performing NAS storage solution.  

Question has a verified solution.

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

Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
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…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

920 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

15 Experts available now in Live!

Get 1:1 Help Now