codice:
    
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        'Inserire qui il codice utente necessario per inizializzare la pagina
    End Sub

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim inizio As DateTime = DateTime.Now
        Do While (Now().Subtract(inizio).TotalSeconds <= 5)
        Loop

    End Sub

    Private Sub Button1_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Init
        Dim btn As Button = DirectCast(sender, Button)
        btn.Attributes.Add("onclick", "v=this;window.setTimeout(function(){v.disabled=true;document.getElementById('div2').innerHTML = 'Operazione in corso, prego attendere...';}, 1);")

    End Sub
in C#,?