With ASP, you looped through data and output it, record by record, to display
in a browser. This is programatic and forces you to write the looping.
With ASP.NET, you can specify data to bind to a control and the control
determines how to display it. This can be done declaratively or
programatically with most controls.
To illustrate the difference:
NON Data binding:
for(int i=0;i<myDataSet.Tables[0].Rows.Countl;i++)
{
//Assume you would use a table instead, but this is simple
Response.Write(ds.Tables[0].Rows["MyColumn"]);
Response.Write("\r\n");
}
Data binding
DataGrid1.DataSource = ds.Tables[0].DefaultView;
DataGrid1.DataBind();
--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
***************************
Think Outside the Box!
***************************