Hi, I know you can place a progress bar to show if your data is being inputted but I wanted to show the exact number being inputted. I thought of using a count and a MOD function for every 100 records. So if I enter 200 the my MOD function will be Count
% 100 == 0. When it reaches 100 it will show in a label that 100 records have be inserted then carry on to 200 just to show the progress.
My code is below and the bold and underline part is where I've tried to attempt this. I don't think I've placed it in the correct position
SqlCommand cmd = new SqlCommand("DELETE from Performance", conn);
cmd.ExecuteNonQuery();
conn.Close();
string insertQuery = "insert into Performance (ID,RandNum) values (@ID, @RandNum)";
conn.Open();
while (i != sum)
{
//SqlConnection connn = new SqlConnection(ConfigurationManager.ConnectionStrings["GJWorkConnectionString& ...
Go to the complete details ...