Below is my simple source code, I'm just trying to call that function after page load, but what is happening right now is: it calls that function before page load. Page loads for 5 seconds and, after that, it displays label execution.
protected void Page_Load(object sender, EventArgs e)
{
display();
}
void display()
{
Thread.Sleep(5000);
Label3.Text = "done";
}
Timer
? – OffenseTimer
answer of @Offense - read this first:robertgreiner.com/2010/06/using-stopwatches-and-timers-in-net – Walrus