View Single Post
Old 06-07-2005, 08:54 AM   #7 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,529
sde is on a distinguished road
make a new function that disables all the buttons, .. then call that function on click.

some suedo code:
Code:
private void DisableInterface()
{
  btnSend.value = "Please Wait...";
  btnSend.disabled = true;
  txtMyField.disabled = true;
  txtMyOtherField.disabled = true;
}

 private void Page_Load(object sender, System.EventArgs e)
{
  this.Image1.Attributes.Add("onclick", "DisableInterface();" + this.GetPostBackEventReference(this.Image1));
}
like i said, it's suedo code, .. but you get the idea.
__________________
Mike
sde is offline   Reply With Quote