<%@ Page Language="VB" %>
<script runat="server">
Sub Button1_Click(sender As Object, e As EventArgs)
Label1.Text = (TextBox1.Text = TextBox2.Text)
Label2.Text = (TextBox1.Text.toUpper() = TextBox2.Text.toUpper())
End Sub
</script>
<html>
<head>
</head>
<body>
<form runat="server">
<p>
String 1:
<asp:TextBox id="TextBox1" runat="server"></asp:TextBox>
</p>
<p>
String 2:
<asp:TextBox id="TextBox2" runat="server"></asp:TextBox>
</p>
<p>
<asp:Button id="Button1" onclick="Button1_Click" runat="server" Text="Button"></asp:Button>
</p>
<p>
Case-sensitive:
<asp:Label id="Label1" runat="server">Label</asp:Label>
</p>
<p>
Case-<strong>in</strong>sensitive:
<asp:Label id="Label2" runat="server">Label</asp:Label>
</p>
</form>
</body>
</html>
|