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. Image for the cookie policy date
close icon

Responding to button clicks

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

1 Reply

SP Sunil Prabakar C Syncfusion Team 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


Loader.
Live Chat Icon For mobile
Up arrow icon