Tag: How to
How to embed Rectangle inside a Button in Xaml ?
Below is a sample code demonstrating how to embed a rectangle inside a Button in Xaml . How to embed Rectangle inside a Button in Xaml ?
How to Programatically Get the Current Theme Color in Windows Phone 8 ?
Are you Looking for the information on how to get the accent color or Theme color of Windows Phone 8 using C# ? Below is a sample code snippet that demonstrates how to achieve it. How to Programatically Get the Current Theme Color in Windows Phone 8 ?
How to Save an Appointment in Windows Phone 8 using C# ?
If you want to allow the user to create or save an appointment within the Calendar application in Windows Phone 8 , you can do it using the SaveAppointmentTask launcher. How to Save an Appointment in Windows Phone 8 using C# ? To use the SaveAppointmentTask launcher , first enable the ID_CAP_APPOINTMENTS in the WMAppManifest file. Create an instance of the SaveAppointmentTask class and set…
How to Create a Unique temporary file in C# ?
There are times when you want to create an unique temporary file in C# to deal with the storage of the data. In this case , you can use the Guid Name to get the unique name. How to Create a Unique temporary file in C# ?
How to return Json instead of XML in ASP.NET Web API ?
When you make a call to the ASP.NET Web API action method and notice this in Google Chrome browser , you would see that by default the data would be displayed in the XML format as shown in the screenshot. How to return Json instead of XML in ASP.NET Web API ? You can easily change this behavior by adding the following code in the…
C Program to display full pyramid using numbers
Problem Write a program in C to print full pyramid using numbers as shown below.The program should take the number of rows as input. 1 2 3 2 3 4 5 4 3 4 5 6 7 6 5 4 How to create and display full pyramid pattern in C using numbers ? Output Abundantcode.com coding samples Enter the limit: 4…
ElasticSearch – How to Install ElasticSearch ?
Problem Statement You need to download , install and Elastic Search on Windows and Mac OS X machines. Solution You can download ElasticSearch which is available in various formats like Zip , Tar.gz from https://www.elastic.co/downloads/elasticsearch . The installation is pretty simple and infact you dont need to do anything special to install ElasticSearch on your machine. You need to extract or uncompress the file. Note…
How to get the list of all tables from a SQL Server database ?
If you need to get the list of all tables from a SQL Server database , you can query the information_schema.tables by specifying the TABLE_TYPE parameter search criteria to “BASE TABLE’. How to get the list of all tables from a SQL Server database ?
How to Use LINQ query on a DataTable in C#?
Below is a sample code snippet that demonstrates the usage of the LINQ query on a DataTable in C#. How to Use LINQ query on a DataTable in C#?
Difference between Hash table and Dictionary in .NET
Here’s a simple difference between Hashtable and Dictionary in .NET Dictionary Hashtable It is generic in nature It is non generic in nature It is defined in the namespace System.Collections.Generic It is defined in the namespace System.Collections When a request is made to the dictionary and if the key does not exists , you get an exception When a request is made to the Hashtable…
C Program to find if the Given year is a Leap Year or Not
Problem Write a program in C to check whether a year entered by the user is a leap year or not. How to find if the given Year is a Leap Year or Not in C ? If the Year is divisible exactly by 4 , then it is a Leap Year. Additionally for the century years that ends with 00 , it is a…
Sorting the Data in a Query in SQL Server
You want the results of the query to be displayed in a sorted order based on some query. In this case , you use the ORDER BY clause in the query by specifying the column on which the sort to work. For example , you want to sort the Departments table in the database by the column DepartmentName. Here’s how the query looks like This…