Tag: How to
How to Get Auto Incrementing Version Number in Visual Studio 2013 ?
If you are a user looking for a simple trick to auto incrementing version number in Visual Studio 2013 , here we go. How to Get Auto Incrementing Version Number in Visual Studio 2013 ? The AssemblyInfo class does the trick for you . Just include the asterik (*) to the end of the AssemblyVersion attribute in the AssemblyInfo class and you are done ….
How to pass a function as parameter in JavaScript ?
There are times when you might want to pass a function as argument to another function in JavaScript. The function keyword can work in multiple ways. It can act as a operator and a statement as well. Additionally , you can create an expression as well. How to pass a function as parameter in JavaScript ? We can pass a function as a parameter to…
How to Convert byte[] to hex string in C# ?
To convert a byte array to hexadecimal string, you can use the BitConverter class in C#. How to Convert byte[] to hex string in C# ? Below is a sample code snippet demonstrating how to achieve this.
Match Statement in F#
Match Statement is similar to switch statement in C# . Below is a sample code snippet demonstrating the use of Match statement in F#. Match Statement in F#
How to Decode HTML Characters in C# ?
The .NET Framework 4.0 and above provides the WebUtility.HtmlDecode class which lets the developers to convert the string which are encoded with HTML characters to plain string . How to Decode HTML Characters in C# ? Below is a sample code snippet that demonstrates how to decode HTML characters in C#.
How to get the AM or PM value from a DateTime object in C# ?
There are times when you might want to get only the string AM or PM from the DateTime object that you have. How to get the AM or PM value from a DateTime object in C# ? You can get this by using the format specifiers in the ToString method as shown in the code snippet.
How to Create Comma Separated Strings from List of Strings in C#?
Below is a sample code snippet that demonstrates how one can easily create the comma separated strings from List<string> in C#. How to Create Comma Separated Strings from List of Strings in C#?
How to Use the Conditional Operator (?) in C# ?
Conditional Operator is also called as ternary operator which lets the developers to select between 2 values with a statement. Assume that you have to check for a number if it is even , we generally tend to use the if else statement . The same can be achieved using the ternary operator in C#. How to Use the Conditional Operator (?) in C# ?…
How to Update From Select Statement in SQL Server ?
Below is a sample query that demonstrates how to update a table by getting the data from the select query in SQL Server. Assume that there are 2 tables AbundantCodeEmployee and AbundantCodeDepartment which contains the id . The id(in department) in this example refers to the department head . The columns “DepartmentName” is updated in the query based on the value retreived . How to Update From…
How to remove a column from an existing table in SQL Server?
Use the DDL (Data definition language) query to remove a column from an existing table in SQL Server. How to remove a column from an existing table in SQL Server? ALTER command will allow the user to remove a column from the table. Syntax to remove the column from the table. ALTER TABLE <tablename> DROP COLUMN <columnname>; For example , assume that you have a…
How to allow the user to browse for directories in Winforms App using C# ?
There are times when you want to allow the user to browse for files and select one in your Windows Application . The Winforms provides the FolderBrowserDialog class which can be used to select a file interactively. How to allow the user to browse for directories in Winforms App using C# ? Below is a sample code snippet demonstrating how to allow the user to…
How to Disable Browser Link in Visual Studio 2015 ?
Browser Link is one of the cool features in Visual Studio for the ASP.NET Developers. Sometimes , the web developers might want to disable this feature for various reasons. How to Disable Browser Link in Visual Studio 2015 ? There are 2 ways in which you can disable the Browser link in Visual Studio 2015. 1. Using Web.config file Just set the property vs:EnableBrowserLink value…