<script language="vb" runat="server">
Sub gonderme(ByVal sender As Object, ByVal e As EventArgs)
If textbox1.Text = "" Then
label2.Text = "adınızı yazmadınız"
End If
If textbox1.Text <> "" Then
label2.Text = "merhaba" & textbox1.Text
End If
End Sub
</script>
<html><body>
<form runat="server">
<asp:label id="label1" text="adınız" runat="server"/>
<asp:textbox id ="textbox1" runat="server"/>
<asp:button id="button1" text="gönder" onclick="gonderme" runat="server"/>
<asp:label id="label2" runat="server"/>
</form></body></html>
aysegl
aysegul_56_@hotmail.com