Category - Form
Results 41 - 59 of 59
16 Dec 2019 11 Mar 2022 0 Comments  4133 Views
ASP.Net  MVC  Button  Form
Here Mudassar Khan has explained with an example, how to use multiple Submit buttons in one Single View 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 use multiple Submit buttons inside 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 is performed in ASP.Net MVC Razor.
08 Jul 2019 08 Jul 2019 0 Comments  21511 Views
Here Mudassar Ahmed Khan has explained with an example, how to disable Submit Button when INPUT Text Field (TextBox) is empty in AngularJS.

When using AngularJS Form validation, the $invalid property can be used to disable the Submit Button when Form is not filled (empty) i.e. the INPUT Text Fields (TextBoxes) have invalid data.
08 Jul 2019 08 Jul 2019 1 Comments  13281 Views
Here Mudassar Ahmed Khan has explained with an example, how to perform Form validation in AngularJS.

This article will illustrate how to perform Form Validation for TextBox INPUTS for validating Name, Email Address and Age, etc. on click of Submit Button in AngularJS.
01 Apr 2019 01 Apr 2019 0 Comments  13444 Views
ASP.Net  MVC  Form  Label
Here Mudassar Ahmed Khan has explained with an example, how to pass (send) Label value from View to Controller in ASP.Net MVC Razor.

Label value cannot be sent to Controller directly and hence when the Submit Button is clicked and the Form is submitted, the Label value needs to be copied to a Hidden Field and then the value of the Label is extracted from the Hidden Field inside the Controller using Form Collection in ASP.Net MVC Razor.
01 Mar 2019 01 Mar 2019 0 Comments  21070 Views
Here Mudassar Ahmed Khan has explained with an example, how to pass (send) other Form Data along with File Upload in ASP.Net MVC Razor.

This article will illustrate how to POST (Submit) a Form with some TextBox fields and an HTML FileUpload element using Html.BeginForm helper function in ASP.Net MVC Razor.
27 Nov 2018 27 Nov 2018 0 Comments  33638 Views
ASP.Net  MVC  Form  Model
Here Mudassar Ahmed Khan has explained with an example, how to pass (send) Model to Controller using Html.BeginForm helper function in ASP.Net MVC Razor.

This article will explain how to create Form Fields using Model class and then pass (send) Model data to Controller using Html.BeginForm helper function in ASP.Net MVC Razor.
27 Nov 2018 27 Nov 2018 1 Comments  32620 Views
ASP.Net  MVC  Form  Model
Here Mudassar Ahmed Khan has explained with an example, how to POST (Submit) a Form without using Model in ASP.Net MVC Razor.

This article will illustrate how to POST (Submit) a Form using Html.BeginForm helper function and Form Collection in ASP.Net MVC Razor.
14 Nov 2018 14 Nov 2018 0 Comments  48093 Views
ASP.Net  MVC  Form
Here Mudassar Ahmed Khan has explained with an example, how to pass (send) data from one View to another in ASP.Net MVC Razor.

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

Then finally, the received data will be displayed in the Destination View using ViewBag.
24 Aug 2018 24 Aug 2018 0 Comments  24692 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 1 Comments  18660 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  19438 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  65325 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.
26 Aug 2016 31 Aug 2020 1 Comments  60897 Views
ASP.Net  MVC  Button  Form  Model
Here Mudassar Ahmed Khan has explained with an example, how to pass (get) data from View to Controller in ASP.Net MVC 5.

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 5.
02 Mar 2015 30 Jun 2020 0 Comments  139855 Views
Here Mudassar Ahmed Khan has explained with an example, how to pass the variable values created in JavaScript to Server Side (Code Behind) in ASP.Net using C# and VB.Net.
10 Jul 2014 26 Mar 2020 9 Comments  194942 Views
Here Mudassar Ahmed Khan has explained with an example, how to open page in new Tab from code behind when using Response.Redirect or Server.Transfer in ASP.Net.

To open a page in new Tab is a browser property and newer browsers will automatically open pages on new tab using this code but older browsers will still open it in new window unless the default settings are changed.
26 Jun 2013 26 May 2020 10 Comments  622941 Views
Here Mudassar Ahmed Khan has explained with an example, how to create a Contact Us Page in ASP.Net using C# and VB.Net.

The Contact Us Form contains some TextBox controls 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.
13 Aug 2012 05 Apr 2022 28 Comments  441781 Views
Here Mudassar Khan has explained with an example, how to display loading image when heavy tasks are executed on Page Load and Page PostBacks in ASP.Net using JavaScript and jQuery.
25 Jun 2012 25 Jun 2012 4 Comments  77024 Views
Here Mudassar Ahmed Khan has explained with an example, how to persist the variables created in JavaScript code across PostBacks in ASP.Net using C# and VB.Net.

This article also explains how to preserve JavaScript objects, variables and data across PostBacks without using ViewState in ASP.Net using C# and VB.Net.
04 Aug 2009 21 May 2020 22 Comments  143368 Views
Here Mudassar Ahmed Khan has explained with an example, how to create a Contact Us Form with HTML Rich Text Editor in ASP.Net using C# and VB.Net.

The Contact Us Form contains some TextBox controls 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.
Results 41 - 59 of 59