Category - Form
Results 1 - 20 of 55
05 May 2022 05 May 2022 0 Comments  1260 Views
ASP.Net  MVC  Form  Core
Here Mudassar Khan has explained with an example, how to submit (post) a Form and send data from View to Controller along with AntiForgery Token in ASP.Net Core MVC.
30 Apr 2022 30 Apr 2022 0 Comments  655 Views
ASP.Net  MVC  Form
Here Mudassar Khan has explained with an example, how to use AntiForgery Token with Form Post (Submit) in ASP.Net MVC.
11 Mar 2022 11 Mar 2022 0 Comments  3764 Views
Here Mudassar Khan has explained with an example, how to use multiple Handler Methods inside Razor Pages in ASP.Net Core.

Multiple Submit Buttons will be placed inside a single Form and each Button will call a different Handler Method in ASP.Net Core Razor Pages.
11 Mar 2022 11 Mar 2022 0 Comments  1579 Views
Here Mudassar Khan has explained with an example, how to use multiple Submit Buttons inside Razor Pages in ASP.Net Core.

Multiple Submit Buttons will be placed inside a single Form and each Button will call a different Handler Method in ASP.Net Core Razor Pages.
26 Feb 2022 26 Feb 2022 0 Comments  1425 Views
Here Mudassar Khan has explained with an example, how to use the Html.TextBoxFor and Html.DropDownListFor functions for generating TextBox and DropDownList in ASP.Net Core MVC.

This article will explain how to create Form Fields using Html.TextBoxFor and Html.DropDownListFor functions and then send data from View to Controller using Model class object in ASP.Net Core MVC.
26 Feb 2022 26 Feb 2022 0 Comments  2412 Views
ASP.Net  MVC  TextBox  Form  Core
Here Mudassar Khan has explained with an example, how to pass (send) TextBox values from View to Controller in ASP.Net Core MVC.

This article will illustrate how to send TextBox values using Form Collection in ASP.Net Core MVC.
26 Feb 2022 26 Feb 2022 0 Comments  2096 Views
ASP.Net  MVC  TextBox  Form  Model
Here Mudassar Khan has explained with an example, how to pass (send) TextBox value from View to Controller without Model in ASP.Net MVC Razor.

This article will illustrate how to send TextBox values using Form Collection in ASP.Net MVC Razor.
04 Jan 2022 04 Jan 2022 0 Comments  3601 Views
Here Mudassar Khan has explained with an example, how to implement Contact Us Form in ASP.Net Core Razor Pages.

The Contact Us Form consists of TextBox controls, a Rich TextBox and a FileUpload control to attach file.

When the Send Button is clicked, the values from the TextBox fields are embedded into HTML string and the HTML string is send as Email along with the Attachment in ASP.Net Core Razor Pages.
15 Dec 2021 15 Dec 2021 0 Comments  4047 Views
Here Mudassar Khan has explained with an example, how to implement Contact Us Form in ASP.Net Core MVC.

The Contact Us Form contains some TextBox controls, a Rich TextBox and a FileUpload control to attach file.

When the Send Button is clicked, the values from the TextBox fields are embedded into HTML string and the HTML string is send as Email along with the Attachment in ASP.Net Core MVC.
30 Nov 2021 30 Nov 2021 0 Comments  4685 Views
ASP.Net  MVC  Email  Form  TinyMCE  Gmail
Here Mudassar Ahmed Khan has explained with an example, how to send email using Contact Us Form in ASP.Net MVC Razor.

The Contact Us Form contains some TextBox controls, a Rich TextBox and a FileUpload control to attach file.

When the Send Button is clicked, the values from the TextBox fields are embedded into HTML string and the HTML string is send as Email along with the Attachment in ASP.Net MVC Razor.
29 Apr 2021 29 Apr 2021 0 Comments  10355 Views
ASP.Net  AJAX  jQuery  MVC  Form
Here Mudassar Ahmed Khan has explained with an example, how to return Boolean (BOOL) value from ActionResult (Action Method) in ASP.Net MVC Razor.

In order to return a Boolean (BOOL) value from ActionResult (Action Method), Json function is used in ASP.Net MVC Razor.
29 Apr 2021 29 Apr 2021 0 Comments  13157 Views
ASP.Net  AJAX  jQuery  MVC  Form
Here Mudassar Ahmed Khan has explained with an example, how to submit (post) a Form and send data from View to Controller using jQuery AJAX in ASP.Net MVC Razor.

This article will explain how to create Form Fields and then send data from View to Controller using Form Collection and jQuery AJAX in ASP.Net MVC Razor.
10 Apr 2021 15 Apr 2021 0 Comments  21225 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  9468 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  9198 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  16834 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  11918 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.
30 Mar 2021 30 Mar 2021 0 Comments  6346 Views
Here Mudassar Ahmed Khan has explained an example, how to display multiple CheckBoxes with Checked Unchecked values in ASP.Net MVC Razor.

The CheckBoxes along with their checked or unchecked (selected) values will be populated from SQL Server database using Entity Framework in ASP.Net MVC Razor.
19 Feb 2021 29 Apr 2021 0 Comments  7020 Views
ASP.Net  jQuery  MVC  Form  FormData  Core
Here Mudassar Ahmed Khan has explained with an example, how to submit Form using jQuery in ASP.Net Core MVC.

This article will explain how to create Form Fields and then submit data from View to Controller using Form Collection and jQuery AJAX in ASP.Net Core MVC
19 Dec 2020 19 Dec 2020 0 Comments  29886 Views
Here Mudassar Ahmed Khan has explained with an example, how to refresh a page after submit (post) in ASP.Net Core Razor Pages.

If the Browser is refreshed using F5 button after the Form is submitted (in other words after PostBack operation), the submitted data is resubmitted to Server.

Thus to prevent such behavior, the Page is redirect to same page after Form submit (post).
Results 1 - 20 of 55