New Additions
18 Jan 2021 18 Jan 2021 0 Comments  61 Views
Here Mudassar Ahmed Khan has explained with an example, how to pass data from View to Controller using TempData in ASP.Net MVC Razor.

TempData itself cannot be used to send data from View to Controller and hence we need to make use of Form and Hidden Field in order to pass data from View to Controller in ASP.Net MVC Razor.
18 Jan 2021 18 Jan 2021 0 Comments  59 Views
Here Mudassar Ahmed Khan has explained with an example, how to pass data from View to Controller using ViewData in ASP.Net MVC Razor.

ViewData itself cannot be used to send data from View to Controller and hence we need to make use of Form and Hidden Field in order to pass data from View to Controller in ASP.Net MVC Razor.
18 Jan 2021 18 Jan 2021 0 Comments  66 Views
Here Mudassar Ahmed Khan has explained with an example, how to pass data from View to Controller using ViewBag in ASP.Net MVC Razor.

ViewBag itself cannot be used to send data from View to Controller and hence we need to make use of Form and Hidden Field in order to pass data from View to Controller in ASP.Net MVC Razor.
15 Jan 2021 15 Jan 2021 0 Comments  243 Views
Here Mudassar Ahmed Khan has explained with an example, how to pass Model data from Controller to View in ASP.Net Core MVC.

The data from the SQL Server Database will be fetched using Entity Framework and populated into Model which will be later sent to the View in ASP.Net Core MVC.
15 Jan 2021 15 Jan 2021 0 Comments  152 Views
Here Mudassar Ahmed Khan has explained with an example, how to change the default Camel Case JSON Output in ASP.Net Core.

The default Camel Case JSON property names tend to break the Client Side JavaScript and hence in order to remove it, the default JSON Serialization needs to be replaced with Newtonsoft.Json Serialization in ASP.Net Core.
13 Jan 2021 13 Jan 2021 0 Comments  285 Views
ASP.Net  AJAX  jQuery  MVC  Core
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 Core MVC.

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 Core MVC.
12 Jan 2021 12 Jan 2021 0 Comments  209 Views
Here Mudassar Ahmed Khan has explained with an example, how to read (get) value of TempData using JavaScript in ASP.Net MVC Razor.

The value of the TempData will be read using Razor Syntax in JavaScript and the value will be displayed in JavaScript Alert Message Box.
12 Jan 2021 12 Jan 2021 0 Comments  198 Views
Here Mudassar Ahmed Khan has explained with an example, how to read (get) value of ViewData using JavaScript in ASP.Net MVC Razor.

The value of the ViewData will be read using Razor Syntax in JavaScript and the value will be displayed in JavaScript Alert Message Box.
07 Jan 2021 07 Jan 2021 0 Comments  435 Views
Here Mudassar Ahmed Khan has explained with an example, how to read (get) value of ViewBag using JavaScript in ASP.Net MVC Razor.

The value of the ViewBag will be read using Razor Syntax in JavaScript and the value will be displayed in JavaScript Alert Message Box.
02 Jan 2021 02 Jan 2021 0 Comments  612 Views
ASP.Net  MVC  Core
Here Mudassar Ahmed Khan has explained with an example, how to set use Connection String from AppSettings.json with DbContext class in.Net Core and ASP.Net Core MVC.

Inside the Startup class, the Connection String is read from the AppSettings.json file and is used to add the DbContext service.
02 Jan 2021 02 Jan 2021 0 Comments  446 Views
ASP.Net  MVC  Core
Here Mudassar Ahmed Khan has explained with an example, how to read (retrieve) Configuration value in .Net Core and ASP.Net Core MVC.

In .Net Core, the Configuration values are stored in AppSettings.json file.
02 Jan 2021 02 Jan 2021 0 Comments  338 Views
ASP.Net  MVC  Core
Here Mudassar Ahmed Khan has explained with an example, how to read value from AppSettings.json file in .Net Core and ASP.Net Core MVC.
02 Jan 2021 02 Jan 2021 0 Comments  338 Views
Here Mudassar Ahmed Khan has explained with an example, how to set Connection String with Windows Authentication in AppSettings.json in .Net Core and ASP.Net Core MVC.

In a Connection String with Windows Authentication, the Integrated Security property is set to TRUE.
02 Jan 2021 02 Jan 2021 0 Comments  438 Views
Here Mudassar Ahmed Khan has explained with an example, how to set SQL Server Connection String in AppSettings.json in .Net Core and ASP.Net Core MVC.

SQL Server Database has two types of Connection Strings i.e. Windows Authentication and SQL Server Authentication.
02 Jan 2021 02 Jan 2021 0 Comments  464 Views
Here Mudassar Ahmed Khan has explained with an example, how to set Connection String with SQL Server Authentication in AppSettings.json in .Net Core and ASP.Net Core MVC.

In a Connection String with SQL Server Authentication, the User Id and Password of the SQL Server Database is specified.
02 Jan 2021 02 Jan 2021 0 Comments  314 Views
ASP.Net  MVC  Core
Here Mudassar Ahmed Khan has explained with an example, how to read (get) value from AppSettings.json file inside Startup.cs class in .Net Core and ASP.Net Core MVC.

Microsoft has replaced System.Configuration class with IConfiguration interface in .Net Core 2.0.
31 Dec 2020 31 Dec 2020 0 Comments  443 Views
Here Mudassar Ahmed Khan has explained with an example, how to set ViewBag using JavaScript or jQuery in ASP.Net MVC Razor.

ViewBag is created on Server Side of the Web application and hence it is not possible to directly set it on Client Side using JavaScript or jQuery.

Thus, only possible way is to set it by making an AJAX call to the Controller’s Action method using jQuery AJAX function in ASP.Net MVC Razor.
31 Dec 2020 31 Dec 2020 0 Comments  445 Views
Here Mudassar Ahmed Khan has explained with an example, how to set ViewData using JavaScript or jQuery in ASP.Net MVC Razor.

ViewData is created on Server Side of the Web application and hence it is not possible to directly set it on Client Side using JavaScript or jQuery.

Thus, only possible way is to set it by making an AJAX call to the Controller’s Action method using jQuery AJAX function in ASP.Net MVC Razor.
31 Dec 2020 31 Dec 2020 0 Comments  396 Views
Here Mudassar Ahmed Khan has explained with an example, how to set TempData using JavaScript or jQuery in ASP.Net MVC Razor.

TempData is created on Server Side of the Web application and hence it is not possible to directly set it on Client Side using JavaScript or jQuery.

Thus, only possible way is to set it by making an AJAX call to the Controller’s Action method using jQuery AJAX function in ASP.Net MVC Razor.
30 Dec 2020 30 Dec 2020 0 Comments  381 Views
Here Mudassar Ahmed Khan has explained with an example, how to remove White Space from beginning (start) and end of string using jQuery.

When the Remove Button is clicked, a jQuery event handler is called and the whitespace is removed from beginning (start) and end of the TextBox value using jQuery.
30 Dec 2020 30 Dec 2020 0 Comments  370 Views
Here Mudassar Ahmed Khan has explained with an example, how to remove White Space from beginning (start) and end of string using JavaScript.

When the Remove Button is clicked, a JavaScript function is called and the whitespace is removed from beginning (start) and end of the TextBox value using JavaScript.
26 Dec 2020 26 Dec 2020 0 Comments  503 Views
Here Mudassar Ahmed Khan has explained with an example, how to validate TextBox on Button Click using jQuery.

When the Validate Button is clicked, a jQuery event handler is called and the TextBox is referenced and its value is compared with Empty string and if the condition tests TRUE then the TextBox is considered Empty
26 Dec 2020 26 Dec 2020 0 Comments  455 Views
Here Mudassar Ahmed Khan has explained with an example, how to validate TextBox on Button Click using JavaScript.

When the Validate Button is clicked, a JavaScript function is called and the TextBox is referenced and its value is compared with Empty string and if the condition tests TRUE then the TextBox is considered Empty.
24 Dec 2020 24 Dec 2020 0 Comments  475 Views
Here Mudassar Ahmed Khan has explained with an example, how to check if TextBox is Empty using jQuery.

When the Validate Button is clicked, a jQuery event handler is called and the TextBox is referenced and its value is compared with Empty string and if the condition tests TRUE then the TextBox is considered Empty.
24 Dec 2020 24 Dec 2020 0 Comments  402 Views
Here Mudassar Ahmed Khan has explained with an example, how to check if TextBox is Empty using JavaScript.

When the Validate Button is clicked, a JavaScript function is called and the TextBox is referenced and its value is compared with Empty string and if the condition tests TRUE then the TextBox is considered Empty.