I'd like to submit my form and then let it go to another page (telling the user that they'll receive an email when it's finished) while running the stored procedure (SQL) in the background.
I don't want the user to wait 30 mins for the search to complete and then go to the other page. How can I accomplish this?
// Clicking on the Search button
protected void btnSearch_Click(object sender, EventArgs e)
{
Guid SearchGUID;
SearchGUID = Guid.NewGuid();
Hashtable htSearch = new Hashtable();
htSearch["value"] = 2;
// Run the stored procedure (takes 30 mins)
objSmart.RunSearch(htSearch);
// Redirect to the other page
Response.Redirect("Search.aspx?search=" + SearchGUID.ToString());
}