Category - Form
Results 1 - 5 of 42
10 Apr 2021 15 Apr 2021 0 Comments  447 Views
ASP.Net  MVC  Button  Form  Model
Here Mudassar Ahmed Khan has explained with an example, how to redirect to Action method with Model data in ASP.Net MVC Razor.

When a Button is clicked, the Model object is populated with values and passed to the RedirectToAction method along with the name of the Controller and its Action method in ASP.Net MVC Razor.
10 Apr 2021 10 Apr 2021 0 Comments  407 Views
Here Mudassar Ahmed Khan has explained with an example, how to show Alert Message Box on Button Click in ASP.Net MVC Razor.

The Alert Message Box will be shown using JavaScript in ASP.Net MVC Razor.
10 Apr 2021 10 Apr 2021 0 Comments  359 Views
ASP.Net  MVC  Form
Here Mudassar Ahmed Khan has explained n with an example, how to pass (send) data from one cshtml page (View) to another in ASP.Net MVC Razor.

The data from the Source cshtml page (View) will be posted (submitted) using Form Post to the Controller’s Action method of the Destination cshtml page (View).

Then finally, the received data will be displayed in the Destination cshtml page (View) using ViewBag.
09 Apr 2021 09 Apr 2021 0 Comments  381 Views
Here Mudassar Ahmed Khan has explained with an example, how to display message using JavaScript Alert MessageBox in ASP.Net Core Razor Pages.

The message sent from Razor PageModel (Code-Behind) to Razor PageModel (HTML) will be displayed in JavaScript Alert MessageBox using ViewData object.
31 Mar 2021 31 Mar 2021 0 Comments  503 Views
Here Mudassar Ahmed Khan has explained with an example, how to pass (send) multiple CheckBox values from View to Controller in ASP.Net Core MVC.

The CheckBoxes will be populated from SQL Server database and when the Form is submitted, the values of all the CheckBoxes (Checked and Unchecked) will be sent to the Controller in ASP.Net Core MVC.
Results 1 - 5 of 42