iam new to .net,do help
-
h.this is windows basd app. i have a one column and n rows in that database say column name is student id,row values are 1,2,3,4 ................n like that.in my frontend there is one textbox and one button.what i want is, when i hit the button,the textbox show 1 and again hiting button,textbox has to show 2,again iam hitting buton textbox has to show 3 and so on.....until my row value becomes null.how to do this.plz help me......
-
h.this is windows basd app. i have a one column and n rows in that database say column name is student id,row values are 1,2,3,4 ................n like that.in my frontend there is one textbox and one button.what i want is, when i hit the button,the textbox show 1 and again hiting button,textbox has to show 2,again iam hitting buton textbox has to show 3 and so on.....until my row value becomes null.how to do this.plz help me......
this is a part of the coding you want:
int id = Convert.ToInt32(textbox.Text);
id++;
dataCommand.CommandText = "Select count(*) from <> where [student id] = " + id;
byte check = dataCommand.ExecuteScalar()
if (check > 0)
{
textbox.Text = id.ToString();
}hope it will help
Becoming Programmer...