You can invoke the controller action by Button using click event to your Syncfusion Button control. In the click event, you can use Url.Action method to invoke the particular action.
You can invoke the controller method by button click using the following code example. To include the Syncfusion components, add the necessary script and theme files in the <head> section as illustrated in the following code example.
You can create Button in CSHTML page as follows.
You can write the Url.Action for the Button click event in the script section as follows.
In the Url.Action you can specify the Controller name and the Action name. Finally, when you click on the Button, the click event is triggered and redirected to the corresponding method in a specified controller. Here, when you click on the Button it is redirected to the “Index” method in the “Home” controller. You can download the complete sample under the following location.
|Article ID:||Published Date:||Last Revised Date:||Platform:||Control:|