if (reader.HasRows) { while (reader.Read()) { if(reader.GetInt32(0) == 5) { Label1.Text = 6; } } }
SqlDataReader dr = null; dr = cmd.ExecuteReader(); if (dr.HasRows) { while (dr.Read()) { if (dr.GetInt32(0) == 5) { Response.Write("6"); } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)