Category - Form
Results 21 - 40 of 59
31 Mar 2021 31 Mar 2021 0 Comments  13277 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  6968 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  8020 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  31818 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).
18 Nov 2020 18 Nov 2020 0 Comments  22880 Views
Here Mudassar Ahmed Khan has explained with an example, how to use the OnPost handler method in ASP.Net Core Razor Pages.

The OnPost handler method is used for handling Form Submissions and the name of the OnPost handler method is specified on the Submit Button used to submit the Form using the asp-page-handler attribute in ASP.Net Core Razor Pages.
17 Aug 2020 17 Aug 2020 0 Comments  47130 Views
Here Mudassar Ahmed Khan has explained with an example, how to submit (post) a Form and send data from Razor Page to POST Handler method in ASP.Net Core.

This article will explain how to create Form Fields and then send data from Razor Page to POST Handler method using Model class in ASP.Net Core.
30 Jun 2020 30 Jun 2020 0 Comments  10250 Views
Here Mudassar Ahmed Khan has explained with an example, how to pass (send) Array from JavaScript function to Code Behind (Server Side) function in ASP.Net using C# and VB.Net.

The JavaScript Array will be converted into a Comma Separated string and then saved in a HiddenField and then will be sent to Code Behind (Server Side) function through PostBack (Form Submission) in ASP.Net using C# and VB.Net.
28 May 2020 28 May 2020 0 Comments  15557 Views
Here Mudassar Ahmed Khan has explained with an example, how to send Form Data to Email in ASP.Net using C# and VB.Net.

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 and the File is attached to the Email.
26 May 2020 26 May 2020 1 Comments  15136 Views
Here Mudassar Ahmed Khan has explained with an example, how to send email using Contact Us Form in ASP.Net using C# and VB.Net.

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 and the File is attached to the Email.
20 Mar 2020 20 Mar 2020 0 Comments  11961 Views
Here Mudassar Ahmed Khan has explained with an example, how to permanently keep User Logged in for long period even when browser closed and automatically login the User back when he visits next time using Forms Authentication and Cookies in ASP.Net MVC Razor.

This User Login form and keeping User Logged in functionality will be implemented using Custom Forms Authentication and Entity Framework.
20 Mar 2020 20 Mar 2020 0 Comments  24681 Views
Here Mudassar Ahmed Khan has explained with an example, how to implement Remember Me CheckBox functionality i.e. Remember the UserName and Password for the user when he visits next time using Cookies in ASP.Net MVC Razor.

This User Login form and Remember Me CheckBox functionality will be implemented using Custom Forms Authentication and Entity Framework.
19 Mar 2020 19 Mar 2020 0 Comments  11386 Views
Here Mudassar Ahmed Khan has explained with an example, how to display (show) Confirmation message after Form Submit (record inserted) in ASP.Net using C# and VB.Net.

This article will illustrate how to display (show) Confirmation message using JavaScript alert message box after Form Submit (record inserted) in ASP.Net.
16 Mar 2020 16 Jul 2022 0 Comments  11189 Views
Here Mudassar Khan has explained with an example, how to fetch File from Form Collection in ASP.Net MVC Razor.

The uploaded Files are available in the Request.Files Form Collection in ASP.Net MVC Razor.
11 Mar 2020 11 Mar 2020 0 Comments  17586 Views
ASP.Net  AJAX  MVC  Form
Here Mudassar Ahmed Khan has explained with an example, how to display (show) Progress Bar when the Form Submitted (Posted) in ASP.Net MVC Razor.

The Ajax.BeginForm extension method is used to make AJAX calls to Controller’s Action method and when the AJAX call is in progress, the Progress Bar GIF Image will be displayed in ASP.Net MVC Razor.
31 Jan 2020 19 Apr 2021 0 Comments  93874 Views
ASP.Net  MVC  Button  Form  Core
Here Mudassar Ahmed Khan has explained with an example, how to submit (post) a Form and send data from View to Controller in ASP.Net Core MVC.

This article will explain how to create Form Fields and then send data from View to Controller using Form Collection in ASP.Net Core MVC.
06 Jan 2020 06 Jan 2020 0 Comments  5858 Views
ASP.Net  MVC  Form  Model  Core
Here Mudassar Ahmed Khan has explained with an example, how to pass (get) data from View to Controller in ASP.Net MVC Core 2.1.

This article will explain how to create Form Fields using Model class and then pass (get) data from View to Controller using Model class object in ASP.Net MVC Core 2.1.
16 Dec 2019 16 Dec 2019 0 Comments  28249 Views
ASP.Net  MVC  Button  Form
Here Mudassar Ahmed Khan has explained with an example, how to call Controller's Action method with Parameter on Button Click in ASP.Net MVC Razor.

When the Submit Button is clicked, the Form will be submitted and the data inside the Form will be sent to the Controller's Action method as parameter using Model class object in ASP.Net MVC Razor.
16 Dec 2019 16 Dec 2019 1 Comments  24863 Views
ASP.Net  MVC  Button  Form
Here Mudassar Ahmed Khan has explained with an example, how to pass (send) data from View to Controller on Button Click in ASP.Net MVC Razor.

When the Submit Button is clicked, the Form will be submitted and the data inside the Form will be passed (sent) to the Controller’s Action method using Model class object in ASP.Net MVC Razor.
16 Dec 2019 16 Dec 2019 0 Comments  26439 Views
ASP.Net  MVC  Button  Form
Here Mudassar Ahmed Khan has explained with an example, how to call HTTP POST Action method on Button Click in ASP.Net MVC Razor.

When the Submit Button is clicked, the Form will be submitted and the HTTP POST Action method of Controller will be called in ASP.Net MVC Razor.
16 Dec 2019 11 Mar 2022 0 Comments  7126 Views
ASP.Net  MVC  Button  Form
Here Mudassar Khan has explained with an example, how to call multiple Action methods using one Single Form in ASP.Net MVC Razor.

One Form in a View can do a POST submission to one Action method in Controller and hence in order to call multiple Action methods using one single Form in a View, a Switch case has to be implemented inside the Action method.

The Switch case detects the clicked Submit button by fetching its Value from the Request.Form collection and the appropriate Action method will be called in ASP.Net MVC Razor.
Results 21 - 40 of 59