I'm doing some code cleanup, and I came across a few instances of
System.Threading.Thread.Sleep(2000);
These are all in Button Click events.
I can't think of any reason why this would be in production code?
Am I missing something?
EDIT --
Full Code Block (some things changed, but steps are the same) -- And yes, I think it sucks the way it's done too ha
protected void btnSubmit_Click(object sender, ImageClickEventArgs e)
{
try
{
System.Threading.Thread.Sleep(2000);
string guid = Profile.Auth.GUID;
activity act = new activity();
try
{
if (checkbox.Checked)
{
add.activity(true);
}
else
{
act.AddActivity(false)
}
LoadData();
}
catch (Exception ex)
{
Response.Write(ex);
}
}
catch { }
}