I need to display process bar when i press add button and 1000 static data is insert into database.
e.g. I write "sangeet" into textbox and when i press submit at the time this sangeet word is insert into database using c# code 1000 time insert. insertation take much time to insert so i need to display process bar at front site when insertation into progress. how many time word is insert.
code:-
public void add()
{
for(i=0;i<=1000;i++)
{
insert("sangeet"); // insert method that insert this word into database
}
}
how can i do it?