Thursday 25 October 2012

how to retrieve data from database in asp.net using c#

For this, just follow some simple steps which is given bellow.
  1. Open Visual studio, goto file --> click New Web site --> select lcocation --> select C# as your language..
  2. Open Default.aspx and Drag Gridview from ToolBar menu (Standard Control)
  3. Or copy bellow code on to your .aspx form between <DIV></DIV> tag.