How To
How to include special characters in connection string
By Tan Lee Published on Jun 21, 2024 2.8K
In a web.config file, special characters (like &, <, >, ", ', etc.) need to be escaped in order to be interpreted correctly by the XML parser.
How to fix 'Authorization in ASP.NET Core' with 401 Unauthorized
By Tan Lee Published on Jun 10, 2024 1.72K
Getting a 401 Unauthorized error when using the [Authorize] attribute in ASP.NET Core generally indicates that there is an issue with the authentication or authorization setup.
Hide URL in Popup Window with window.open
By Tan Lee Published on Feb 08, 2025 381
If you're using the window.open() method to open a popup on your website, the URL of the opened window often appears in the address bar.
How to Clone Objects with Object.create in Javascript
By Tan Lee Published on Feb 08, 2025 135
To clone an object using Object.create in JavaScript, you can create a new object and set the prototype of the new object to be the object you want to clone.
How to Set new Attribute in XML using jQuery
By Tan Lee Published on Feb 08, 2025 135
To set a new attribute in XML using jQuery, you follow a similar approach to manipulating HTML elements, but with XML data.
How to Add Properties to an Object in JavaScript?
By Tan Lee Published on Feb 08, 2025 128
An object in JavaScript is a collection of properties, where each property is a key-value pair. Properties define the characteristics of the object and can be modified, removed, or added dynamically even after the object is created.
How to Center a Popup Window on Screen
By Tan Lee Published on Feb 08, 2025 163
You can use JavaScript's window.open() method to create and center a popup window. By setting the correct values for left and top, we can position the window in the middle of the screen.
How to undo the changes in Entity Framework
By Tan Lee Published on May 28, 2024 1.29K
Implementing an undo/redo feature for a DbContext in Entity Framework (EF) is a challenging task because Entity Framework does not provide built-in support for undo/redo operations.
How to run commands in command prompt using C#
By Tan Lee Published on Jan 17, 2025 913
To run CMD commands in C#, you can utilize the `System.Diagnostics.Process` class.
How to Change parameter used in datatables ajax url.Action on Ajax.reload
By Tan Lee Published on May 24, 2024 1.95K
To change parameters used in the ajax URL of a DataTables table when using url.Action in ASP.NET MVC, you can utilize DataTables' API methods.
How to fix 'IMvcBuilder' does not contain a definition for 'AddNewtonsoftJson'
By Tan Lee Published on Jun 21, 2024 3.79K
The error message you are seeing, "IMvcBuilder does not contain a definition for AddNewtonsoftJson", typically occurs when you're trying to add Newtonsoft.Json support to an ASP.NET Core MVC application, but the necessary package or using directive is missing.
Windows Management Instrumentation in C#
By Tan Lee Published on Dec 30, 2024 441
This article provides an overview of Windows Management Instrumentation (WMI) technology and demonstrates how to use WMI with the WMI Query Language (WQL) in C#.