We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on : November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Responding to button clicks

Thread ID:

Created:

Updated:

Platform:

Replies:

109243 Jun 4,2013 05:17 PM UTC Jun 7,2013 12:38 PM UTC ASP.NET MVC (Classic) 1
loading
Tags: Tools
Doug Matulis
Asked On June 4, 2013 05:17 PM UTC

Hello,

How do you hook a button control to a method in the Controller in MVC4.  I tried making the button type submit and created  post method as follows but it is never called when the button is pressed:

        [Authorize] //Must be logged into to see these screens
        [AcceptVerbs(HttpVerbs.Post)]
        public ActionResult Projects(ProjectHeaderModel model)
        {
            return View();
        }

button declaration looks as follows:

        <form>
            <div class="float-right" style="padding-top: 5px">
                @Html.Syncfusion().Button("btnCreateProject").Text("Create a New Project").Width(150).Height(30).Type(ButtonTypes.Submit)
            </div>
        </form>

Thanks,
Doug

Sunil Prabakar C [Syncfusion]
Replied On June 7, 2013 12:38 PM UTC

 Hi Doug Matulis,

Thanks for using Syncfusion products. We are not able to reproduce the reported issue. Kindly provide the sample which reproducing the reported issue.

For your convenience we have prepared a sample to exhibit this behavior and it is available in the following link.

ButtonResponding.zip

Please let us know, if you have any other queries.

Thanks & Regards

Sunil Prabakar C


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;