Lo debes colocar en el load, sirve para desactivar el botón enviar cuando el usuario hace click. Evita el doble envío cuando el cliente hace más de un click.
Sub Page_Load(ByVal Sender as Object, ByVal E as EventArgs)
' ESTO EVITA EL DOBLE SUBMIT
Dim sb As New System.Text.StringBuilder
sb.Append("if (typeof(Page_ClientValidate) == 'function') { ")
sb.Append("if (Page_ClientValidate() == false) { return false; }} ")
sb.Append("this.value = 'Por favor espere...';")
sb.Append("this.disabled = true;")
sb.Append(Page.GetPostBackEventReference(butOK))
sb.Append(";")
butOK.Attributes.Add("onclick", sb.ToString())
End Sub
El anterior ejemplo está en VB, en el siguiente enlace encuentra una solución para "C"
http://msdn.microsoft.com/es-es/library/bb972270.aspx