<!-- Directives -->
<%@ Page Language="C#" %>
<!-- Code Section -->
<script runat="server">
private void MakeUpper(object sender, EventArgs e)
{
string buf = TheString.Value;
TheResult.InnerHtml = buf.ToUpper();
}
</script>
<!-- Layout -->
<html>
<head><title>UpperCase</title></head>
<body>
<h1>Make It Upper</h1>
<form id="Form1" runat="server">
<input runat="server" id="TheString" type="text" />
<input runat="server" id="Button1" type="submit" value="Proceed..."
OnServerClick="MakeUpper" />
<hr>
<h3>Results:</h3>
<span runat="server" id="TheResult" />
</form>
</body>
</html>
|