while (rdr.Read())
{
string column = rdr[1].ToString();
int columnValue = Convert.ToInt32(column);
for (--)
So The data I want to retrieve has two columns. I want to get the second column and the values in this column are in...
Hello, I am very new to C# and Visual Studio Platform. And the problem I am facing now is that I take the data from SQl and based on that data I have to make a condition let's say if the data from SQL is greater than 5, then I will turn on the light. Could anyone help me how to create this...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.