FEB 01 2015

await Operator Keyword in C#

C#
1 comments

The await operator is applied to a task in an asynchronous method to suspend the execution of the method until the awaited task completes. The task represents ongoing work. The asynchronous method in which await is used must be modified by the async keyword. Such a method, defined by using the async modifier, and usually…

Read the rest

FEB 01 2015

async Modifier Keyword in C#

C#
no comments

The async modifier indicates that the method, lambda expression, or anonymous method that it modifies is asynchronous. Such methods are referred to as async methods. public async Task DoSomethingAsync() { // . . . . } If you’re new to asynchronous programming, you can find an introduction in Asynchronous Programming in .NET using C#. An…

Read the rest

JAN 30 2015

Asynchronous Programming in .NET using C#

C#
6 comments

“Performance” is a term that is used a lot when talking about apps, but it’s actually a pretty vague term. There are at least two aspects of performance that most people think about: app launch time and throughput. Both of these can be measured and described with actual numbers. The true test of an app,…

Read the rest

FEB 10 2014

Validating FileUpload control for specific file type and required field.

ASP.Net, C#

In this article I am going to explain how we can check and validate user for uploading only certain files and making uploading of file to be must for submission of form. For validating for required field we have to use RequiredFieldValidator and for validating for file types we’ll have to use RegularExpressionValidator. But, before…

Read the rest

JUL 08 2013

CASE statement in SQL Server

SQL Server

The SQL Server CASE statement is a conditional statement that returns a single value based on the evaluation of a statement. CASE expressions can be used in SQL anywhere an expression can be used like SELECT list, WHERE clause, HAVING clause, IN list, DELETE and UPDATE statements. CASE statement can also be nested. This provides…

Read the rest

JUL 06 2013

Introduction to JOINs in SQL Server

SQL Server

The nature of relational database design shows that we will have related data that is stored in different tables. To retrieve data from two or more tables we use JOINS. The JOIN clause tells the database how the data in the two tables is related so that it can return a correct representation of the…

Read the rest

JUL 03 2013

Find child control of a control in WPF

WPF

Sometime we want to get reference of child control of container control of specified type. Example we want to find CheckBox control inside ListViewItem or we want to fing another container Panel inside a Grid. Here is a method through which we can find child control inside a parent control. The method below will return…

Read the rest

JUN 29 2013

Getting parent control of a control in WPF through code or at runtime.

WPF

I was working on a WPF project where I came accross a problem where I need to refer to the parent container/control of specific type of control/item in WPF. So I did some RnD and search on the net for the problem and finally I came accross a solution which I want to share. Suppose…

Read the rest

Untitled.png
DEC 15 2012

How to create Windows 7 Bootable USB Flash Drive (Pen Drive)

Other

There are situations when we want to have a bootable Windows 7 USB Flash Drive/ Pen Drive. The reason could be any, may be the system on which you have to install Windows 7 does not have a DVD Rom or you don’t want to burn ISO of Windows 7 to a DVD Rom but…

Read the rest

NOV 04 2012

Enumeration in C#

C#

There are many situations when we want to give specific names to values. In order to accomplish this task we use Enumeration. In this blog I am going to explain how to create and use enumeration (enum). Enumerations are special sets of named values which all maps to a set of numbers, usually integers. The…

Read the rest