All Posts


To Convert string to enum in C# use Enum.TryParse and Enum.Parse methods
How to convert string to enum in C#

There are 3 ways to add an HTML button as a link to other HTML pages 1. Using Buttton inside an HTML form 2. Using CSS style an anchor …

To check if a string is null or empty or undefined use the following code snippet if(!emptyString){ // String is empty }

In SQL server, To write if then else in SQL select query we can use SELECT CASE statement (In all versions), SELECT IIF logical …

To create GUID or UUID in JavaScript we can use Math.Random() or ES6 crypto API getRandomValues method.GUID or UUID generated by …

In javascript, we can check if an object is empty or not by using JSON.stringify, Object.keys (ECMA 5+),Object.entries (ECMA 7+)

Javascript replace method, replaces only the first occurrence of the string. To replace all occurrences of a string in Javascript use …

To check if a Javascript String Contains a substring or not, we can use 7 different Javascript methods as listed in below table.

In Oracle, to rename a column in a table, use ALTER TABLE RENAME COLUMN statement

To delete columns in Oracle use ALTER TABLE…DROP COLUMN statement query. Dropping columns in oracle can be done in 2 ways …