How To
How to get excel sheet in C#
By Tan Lee Published on Oct 10, 2024 353
To read an Excel sheet in C# using OleDbConnection, you can follow these steps.
How to convert datetime to date (with time set to 00:00:00.000) in SQL
By Tan Lee Published on Oct 07, 2024 362
To convert a DATETIME value to a DATE only (with the time set to 00:00:00.000) in SQL, you can use various functions depending on the SQL database you are using.
How to get data attribute JavaScript
By Tan Lee Published on Oct 04, 2024 274
To get a data attribute in JavaScript, you can use the dataset property of an HTML element.
How to use string interpolation in PowerShell
By Tan Lee Published on Oct 01, 2024 543
In PowerShell, string interpolation is a convenient way to embed variables and expressions within strings.
Calling powershell script from batch file
By Tan Lee Published on Oct 01, 2024 533
To call a PowerShell script from a batch file, you can use the powershell.exe command followed by the -File parameter.
Example PowerShell Scripts for Common Administrative Tasks
By Tan Lee Published on Oct 01, 2024 353
Here are some example PowerShell scripts for common administrative tasks.
How to use for each in jQuery
By Tan Lee Published on Sep 16, 2024 330
In jQuery, the .each() method is used to iterate over a jQuery object, executing a function for each matched element.
How to fix 'string or binary data would be truncated' in sql
By Tan Lee Published on Sep 11, 2024 582
The error message "string or binary data would be truncated" in SQL typically occurs when you're trying to insert or update data in a column, and the data you're providing exceeds the defined size of the column.
How to Convert a String to an Integer in JavaScript
By Tan Lee Published on Sep 06, 2024 287
In JavaScript, there are several ways to convert a string to an integer.
How to use getday in Javascript
By Tan Lee Published on Sep 05, 2024 273
To get the current day of the week in JavaScript, you can use the Date object.
How to use repeat in Javascript
By Tan Lee Published on Sep 05, 2024 233
In JavaScript, if you want to repeat a string multiple times, you can use the repeat() method available on strings.
How to Clear content in RichEditControl
By Tan Lee Published on Aug 28, 2024 368
If you're working with RichEditControl from DevExpress in a C# WinForms application, you can clear its content in a straightforward way.