Guest User

Guest User

  • Tech Writer
  • 357
  • 118.5k

A pause in method needed before execution of another method

May 2 2012 12:19 PM
Hi

I wondered if anyone knew of a "Pause" or "Delay" type piece of code I could use to delay a method execution within a method.

What I have is:-

protected void ImageButton1_Click(object sender, ImageClickEventArgs e)

MyShoppingCart usersShoppingCart = new MyShoppingCart();

String cartId = usersShoppingCart.GetShoppingCartId();

CheckOutHeader.InnerText = "Thank You - Your Order is Complete! Please wait whilst you are directed to PayPal...";

ImageButton1.Visible = false;

TotalAndOrderToPP(usersShoppingCart, cartId);


I ideally want some sort of pause or delay of say a second before the TotalAndOrderToPP is involked?

Regards

Steven


Answers (3)