New Additions
22 Jan 2021 20 Apr 2021 0 Comments  2706 Views
Here Mudassar Ahmed Khan has explained with an example, how to use Hidden Fields with Razor Pages in ASP.Net Core.

This article will explain how to create Hidden Fields using Model class, set its value and then retrieve data from Razor Page inside POST Handler method in ASP.Net Core.
20 Apr 2021 20 Apr 2021 0 Comments  29 Views
Here Mudassar Ahmed Khan has explained with an example, how to prevent / avoid / stop Form Resubmission (Resubmit) when Refresh button clicked in Browser in ASP.Net MVC Razor.

The problem is that when browser refresh button or F5 or CTRL + F5 function keys are pressed, the last executed event is again executed.

For example, if you have a Form submission on Button click and after clicking button, page is refreshed by the user then the Form is resubmitted and again same Action method gets called.
14 Jul 2020 19 Apr 2021 0 Comments  7991 Views
ASP.Net  AJAX  jQuery  JSON  MVC  Core
Here Mudassar Ahmed Khan has explained with an example, how to use jQuery AJAX and JSON in ASP.Net Core MVC.

The Controller’s Action method will be called using jQuery AJAX and JSON from View in ASP.Net Core MVC.
06 Aug 2020 19 Apr 2021 0 Comments  2519 Views
Here Mudassar Ahmed Khan has explained with an example, how to call JavaScript function with CommandField in ASP.Net GridView using C# and VB.Net.

Inside the RowDataBound event handler, the Button will be referenced and then JavaScript function will be assigned to its Client Side OnClick event handler.

Thus when the CommandField Button is clicked, the JavaScript function will be called in ASP.Net using C# and VB.Net.
17 Jul 2020 19 Apr 2021 1 Comments  16346 Views
Here Mudassar Ahmed Khan has explained with an example, how to use jQuery AJAX in ASP.Net Core Razor Pages.

The POST method of the Razor Page will be called using jQuery AJAX and JSON from HTML in ASP.Net Core.
31 Jan 2020 19 Apr 2021 0 Comments  33190 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.
05 Mar 2013 19 Apr 2021 0 Comments  49364 Views
Here Mudassar Ahmed Khan has explained with a basic example and attached sample code, how to configure and use Entity Framework in ASP.Net Websites and Web Applications.

For this article he has made use of an ASP.Net GridView control for which Custom pagination have been implemented using Entity Framework and LINQ.

Customized Paging helps improve performance and effeciency when there are large number of records.
16 Jul 2020 19 Apr 2021 0 Comments  2939 Views
Here Mudassar Ahmed Khan has provided a short Hello World Tutorial using a small Sample Program example on how to use Razor Pages in ASP.Net Core 2.0 for the first time.

This article makes use of Visual Studio for developing the ASP.Net Core 2.0 Razor Pages Hello World Sample program.
12 Feb 2019 19 Apr 2021 0 Comments  4898 Views
Here Mudassar Ahmed Khan has explained with an example, how to export GridView data to Word document in ASP.Net using C# and VB.Net.

This article will illustrate how to export all Pages of GridView with Paging Enabled to Word document along with formatting i.e. Styles and Colors in ASP.Net.

When the Export Button is clicked, the GridView will be rendered as an HTML string which will be later written to Response Stream and ultimately downloaded as Word document in ASP.Net.
19 Aug 2016 19 Apr 2021 2 Comments  104892 Views
Here Mudassar Ahmed Khan has explained a simple tutorial with an example, how connect the ASP.Net MVC 5 application with database using Entity Framework.

This article will explain how to configure Entity Framework and connect to SQL Server database and finally the fetched data is displayed in View.
03 Oct 2020 19 Apr 2021 0 Comments  11605 Views
Here Mudassar Ahmed Khan has explained with an example, how to upload Large Files in ASP.Net Core.

The maximum upload File Size Limit in ASP.Net Core is 28 MB, which means user will not be allowed to upload Files of size greater than 28 MB.

Thus this article will provide details about how you can increase the limit and upload files greater than 28 MB in ASP.Net Core.
04 Apr 2015 19 Apr 2021 0 Comments  33455 Views
Here Mudassar Ahmed Khan has explained how to pass (send) value from child popup window to parent page window using JavaScript.

The child popup window must be opened using JavaScript window.open function. The window.open function returns the reference of the opened Child popup window using which the elements and controls of the Child popup window will be accessed.
29 Sep 2020 19 Apr 2021 0 Comments  1933 Views
Here Mudassar Ahmed Khan has explained with an example, how to use Static files (Images, CSS and JS files) in ASP.Net Core.

Static files such as Image files, CSS files and JavaScript JS files does not work in ASP.Net Core unless it is placed in proper location with the project and also some settings are set.
07 Jun 2016 19 Apr 2021 0 Comments  14479 Views
Here Mudassar Ahmed Khan has explained with an example, how to implement Paging in ASP.Net GridView using C# and VB.Net.

Paging in ASP.Net GridView in Code Behind is done using OnPageIndexChanging event.
17 Apr 2021 17 Apr 2021 0 Comments  250 Views
Here Mudassar Ahmed Khan has explained with an example, how to extract QueryString Parameters inside Controller’s Action method in ASP.Net MVC Razor.

The QueryString Parameter values are received as parameter in the Controller’s Action method.
01 Jun 2015 15 Apr 2021 0 Comments  14732 Views
Here Mudassar Ahmed Khan has explained with an example, how to implement jQuery UI DatePicker (Calendar) with ASP.Net TextBox with ReadOnly property set to true.

When TextBox is set ReadOnly true, its value is not available on Server Side (Code Behind) and hence we need to make use of the Request.Form collection to fetch the value of jQuery DatePicker (Calendar).
15 Apr 2021 15 Apr 2021 0 Comments  277 Views
ASP.Net  MVC  Model
Here Mudassar Ahmed Khan has explained with an example, how to pass (send) Model data to Action method with data using QueryString Parameters in ASP.Net MVC Razor.

When a Button is clicked, the Model object is populated with values and passed (sent) to the RedirectToAction method along with the name of the Controller and its Action method in ASP.Net MVC Razor.
10 Apr 2021 15 Apr 2021 0 Comments  426 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.
13 Apr 2021 13 Apr 2021 0 Comments  342 Views
Here Mudassar Ahmed Khan has explained with an example, how to redirect to another Controller’s Action method in ASP.Net MVC Razor.

This article will illustrate how to redirect to an Action method that belongs to another Controller along with parameters in ASP.Net MVC Razor.
13 Apr 2021 13 Apr 2021 0 Comments  177 Views
Here Mudassar Ahmed Khan has explained with an example, how to display a message before redirecting in ASP.Net MVC Razor.

When a Button is clicked, first an operation will be performed, then a message will be displayed using JavaScript Alert Message Box and finally the page will be redirected in ASP.Net MVC Razor.
15 Aug 2018 13 Apr 2021 0 Comments  52291 Views
ASP.Net  AJAX  jQuery  MVC
Here Mudassar Ahmed Khan has explained with an example, how to redirect to another View, Page or URL after AJAX call in ASP.Net MVC Razor.
10 Apr 2021 10 Apr 2021 0 Comments  398 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  352 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  371 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.
07 Apr 2021 07 Apr 2021 0 Comments  413 Views
Here Mudassar Ahmed Khan has explained with an example, how to implement CheckBoxes (CheckBoxList) in ASP.Net Core Razor Pages.

Group of multiple CheckBoxes (CheckBoxList) will be populated from SQL Server Database by looping through the Model.

The CheckBoxes are grouped by specifying common name for all CheckBoxes, this helps fetching their values as a collection in the Request header.