Didalam asp.net :
<.b.o.d.y. onkeydown="javascript:if(window.event.keyCode == 13 && window.event.srcElement.id != 'Button2') window.event.keyCode = 9;">
untuk textbox changed berjalan :
Protected Sub Button2_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button2.Click
Label1.Text = "Nama : " & TextBox1.Text & vbCrLf & "Alamat : " & TextBox2.Text _
& vbCrLf & "Telepon : " & TextBox3.Text
clears()
End Sub
---------
button ditambah propertiesnya UseSubmit behavior, agar enter tidak langusng ke Button postback
Tidak ada komentar:
Posting Komentar