VB.NET
’Using DataReader
While dr.Read()
Response.Write((dr('ProductName') + ' '))
Response.Write((Convert.ToInt16(dr('discontinued')) + '
'))
End While
C#
//Using DataReader
while (dr.Read ())
{
Response.Write (dr['ProductName'] + ' ');
Response.Write (Convert.ToInt16 ( dr['discontinued']) + '
');
}
Share with