24 Aug 2018 24 Aug 2018 0 Comments  964 Views
Here Mudassar Ahmed Khan has explained with an example, how to implement DropDownList SelectedIndexChanged event in ASP.Net MVC Razor.

When an item is selected in DropDownList, the JavaScript OnChange event handler will be raised which in turn will submit the Form, thus simulating the SelectedIndexChanged event in ASP.Net MVC Razor.
07 Aug 2018 07 Aug 2018 0 Comments  1071 Views
ASP.Net  MVC  Web API  Button  Form
Here Mudassar Ahmed Khan has explained with an example, how to submit (post) a Form and send data to Web API using Html.BeginForm Helper method in ASP.Net MVC Razor.
03 Aug 2018 03 Aug 2018 0 Comments  1104 Views
ASP.Net  MVC  Web API  Form
Here Mudassar Ahmed Khan has explained with an example, how to submit (post) a Form and send data to Web API in ASP.Net MVC Razor.

This article will explain how to create Form Fields using Model class and then send data from View to Web API Controller using Model class object in ASP.Net MVC Razor.
05 Jul 2018 05 Jul 2018 0 Comments  2499 Views
Here Mudassar Ahmed Khan has explained with an example, how to display Confirmation Box (Dialog) before Form Submit in ASP.Net MVC Razor.

The JavaScript Confirmation Message Box (Dialog) will be displayed using jQuery by attaching a Submit event handler to the Form.

When the Submit button is clicked, the Confirmation Message Box (Dialog) with OK (Yes) and Cancel (No) buttons will be displayed, if the User clicks OK (Yes) button only then the Form will be submitted and the Controller’s Action method will be called.