<%@ Page Language=VB Debug=true %>
<script runat=server>
Sub txtName_TextChanged(Sender As Object, E As EventArgs)
txtName.Text = UCase(txtName.Text)
End Sub
</SCRIPT>
<HTML>
<HEAD>
<TITLE>Writing Code that Fires when Text in a TextBox Control Changes</TITLE>
</HEAD>
<form runat="server">
Enter your Name:<BR>
<asp:TextBox
id="txtName"
AutoPostBack=True
OnTextChanged="txtName_TextChanged"
Columns="25"
MaxLength="30"
Font-Name="Comic Sans MS"
Font-Size="9pt"
runat=server
/>
<BR><BR>
</Form>
</BODY>
</HTML>
|