Tuesday, January 27, 2015

All date related solution

All date related solution   protected void Page_Load(object sender, EventArgs e)         {             if (!IsPostBack)             {                 GetnextSunday();                ...

Read more »

how to do sorting on gridview

 private void BindGrid()        {            if (ViewState["SortExp"] != null && ViewState["order"] != null)            {                lstemp.Sort(new GenericComparer<Employee>(ViewState["SortExp"].ToString(),...

Read more »

Tuesday, June 26, 2012

Example on Windows Service Wothout Setup

Hi Friends,in this post i would like to explain windows service for displaying message box for every 3 seconds.Step 1:* Open windows service project with projectName WinService1* Goto ToolBox-->General-->Right Click-->Select choose items-->Select Timer(Systems.Timers)* Project-->AddReference-->System.Windows.Forms(Message Box is a part of above reference).* Place a Timer(System.Timers) with interval-3000 &...

Read more »

What Is Delegate with a simple example

aIntroduction This article is an attempt to explain a delegate with a simple example. Delegates are similar to function pointers in C++. For simple understanding delegates can be defiend as methods that are used to call other method. Only condition to call another method from a delegate is that the signature of the calling methods and delegates should match. Follw This Step Delegates should have the same signature...

Read more »

How to Create Setup File And how to install,Start windows service

aaa Introduction: Here I will explain how to install windows service and how to start the windows service in our local machine.Description: In previous article I explained clearly how to Create Setup File and how to run windows service in scheduled intervals. Now I will explain how to install windows service in our system.To install windows...

Read more »

Monday, June 25, 2012

Moveable Telerik Rad window in WPF

Introduction : How to Move Telerik Rad Window in WPF Descritption : You can move your rad window move any where in your page Using Code : In Design View :  <Canvas Name="mycanvas" Height="{Binding Height,ElementName=radWindow2}" Width="{Binding Width,ElementName=radWindow2}"  >     <Thumb...

Read more »

Display message in your pc Notification Area in WPF

Introduction : How To Display message in your pc Notification Area in WPF Descritption : You can set Custom icon and Custom Message in Your Pc Notification Area Using Code : This code for Notify Icon  private System.Windows.Forms.NotifyIcon notifyIcon1; private System.Windows.Forms.ContextMenu contextMenu1; private...

Read more »

Followers