Pages

Saturday, May 25, 2013

Introduction

What is ASP.net?

This tutorial written and contributed by Mitchell Harper. Please see footnote for more info.
You've probably heard the word ASP.net fairly often these days, especially on developer sites and news. This article will explain what the fuss is all about. ASP.NET is not just the next version of ASP; it is the next era of web development. ASP.NET allows you to use a full featured programming language such as C# (pronounced C-Sharp) or VB.NET to build web applications easily.

Friday, November 23, 2012

GetPath OF Direcoty or File

http://www.studyblog.net/2010/12/get-application-path-in-c/

http://www.dotnetfunda.com/codes/code2117-get-application-path.aspx

http://www.csharp-examples.net/get-application-directory/

http://www.daniweb.com/software-development/csharp/code/369432/get-files-and-folders-from-a-directory

Wednesday, November 14, 2012

How to Type the Copyright,Registration n TradeMark Symbols


To create the Registered symbol  © on a PC:

  • hold down the Alt key while typing the numeric keys 0169



To create a Trademark symbol ™ on a PC

  • hold down the Alt key while keying in the numeric keys 0153 

To create the Registered symbol ® on a PC:

  • hold down the Alt key while typing the numeric keys 0174

Monday, October 1, 2012

DataSet,DataBinding,BindingSource

DataGridView Auto Number After Binding The Data

 Auto generate row number in DataGridView in windows application. Its simple below code shows how to do that.
Just you need to pass your datagridview in below function and it will generate auto number to Header cell.
NOTE: First you have to bind the datagridview with data then call the below function.
Using C# code

//Auto Generate number

public void AutoNumberRowsForGridView(DataGridView dataGridView)

{

    if (dataGridView != null)

   {

    for (int count = 0; (count <= (dataGridView.Rows.Count - 2)); count++)

     {

       dataGridView.Rows[count].HeaderCell.Value = string.Format((count + 1).ToString(), "0");

      }
   }
}

And Display Numbers In DataGridView First Cell:


private void dataGridViewAutoNumber()
        {
            for (int row = 0; row < dataGridView1.RowCount - 1; row++)
            {
                dataGridView1.Rows[row].Cells[0].Value = row + 1;
            }
        }