Tag: How to
How to Check for NULL value in a Query in SQL Server ?
You might want to check if a column contains a NULL value or NOT and filter the rows. You can use the IS NULL and IS NOT NULL keywords in SQL Server to perform the NULL check. How to Check for NULL value in a Query in SQL Server ? The NULL values cannot be easily identified using the = operator because the NULL refers…
How to Copy a Song to Windows Phone Music Hub/Library using C#?
Below is a sample code snippet that demonstrates how to copy a song (audio) to the Windows Phone hub/library Programatically using C#. How to Copy a Song to Windows Phone Music Hub/Library using C#? The SaveFileToIsolatedStorage is explained in the How to Save File to Isolated Storage in Windows Phone 8? Article
C Program to display inverted full pyramid using *
Problem Write a program in C to print inverted full pyramid using * as shown below.The program should take the number of rows as input. * * * * * * * * * * * * * * * * How to create and display inverted full pyramid using * ? Output Abundantcode.com Coding samples Enter number of rows: 4 *…
How to populate XDocument from a String in C# ?
Want to load or populate XDocument from a string in C# ? . Use the Parse method defined in the XDocument class as demonstrated below. How to populate XDocument from a String in C# ?
C Program to find if a character is a Vowel or Consonant
Problem Write a program in C to check whether a given character is a vowel or consonant. How to check if a character is a vowel or consonant in C Language ? In English , the alphabets A, E, I, O and U are vowels and the rest of the characters are consonants. Here’s a program that takes an input character from the user and…
C Program to Multiply two Floating Point Numbers
Problem Write a program in C to multiply two floating point numbers and then display the output on the console window. C Program to Multiply two Floating Point Numbers Output Enter two numbers: 6 7 Product = 42.00
How to Convert XDocument to XmlDocument in C# ?
To convert an XmlDocument to XDocument , you can use the CreateReader method of the XDocument and load it in to the XmlDocument. How to Convert XDocument to XmlDocument in C# ?
C Program to display Inverted half-pyramid using *
Problem Write a program in C to print Inverted half-pyramid using * as shown below.The program should take the number of rows as input. * * * * * * * * * * How to create and display Inverted half-pyramid pattern in C using * ? Output Abundantcode.com Coding samples Enter the limit : 4 * * * * * * * * * …
Initialize int array in C# ?
Here’s a code snippet demonstrating how to initialize int arrays in C# and display the contents of it using the for loop. How to Initialize int array in C# ?
How to Count the Number of 1 Bits in C# ?
Do you want to count the number of 1’s in a number in C# ? . Below is a sample source code that demonstrates how to count the number of 1 bits. How to Count the Number of 1 Bits in C# ?
How to Implement Style Inheritance in Windows Phone 8 ?
There are times when you want to apply some styles to a control in Windows Phone 8 but you may not want to start it from scratch . In these scenarios , the developers can use the property “BasedOn” to reference another style that is defined . For example , assume that there is already a style named “Style1” and for the Style2 you might…
ElasticSearch – How to Interact with ElasticSearch using JSON over HTTP ?
Problem Statement You need to communicate with ElasticSearch to perform the search or the CRUD operations. Solution You can interact with ElasticSearch using the RESTful API over port 9200. Additionally , ElasticSearch has the official clients for various programming languages like .NET , Java , Ruby etc. The format of the request of ElasticSearch is as specified below. <VERB> <PROTOCOL> ://<HOST>/<PATH>?<QUERYSTRING> Additionally , it can…