Re: ASP.Net Running total of Character Count on input
- From: "BJ" <julie6232000@xxxxxxxxx>
- Date: 1 Nov 2005 12:25:16 -0800
Jim,
Thanks for the response. That didn't work but I do not think it is the
code.
Error:
Line 146
Char: 1
Error: 'mytextbox_onkeypress' is undefined
code: 0
URL:http://localhost/chem/Default.aspx
My page is an ASP.Net page (called Defalut.aspx) that hosts a user
control that contains input fields. So on the HTML of the contorl I
coded the following:
<%@ Control Language="vb" AutoEventWireup="false"
Codebehind="UnauthorizeChem.ascx.vb" Inherits="Chem.UnauthorizeChem"
TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %>
<h1 style="FONT-FAMILY: Verdana">UnAuthorize a Chemical Product
Application</h1>
<input id="textbox2" onkeyup="mytextbox_onkeypress" />
<BR>
<script language="vbscript">
maxLength = 500
Private sub mytextbox_onkeypress()
document.all.TextBox1.value = maxLength -
len(document.all.textbox2.value)
end sub
</script>
<BR>
<BR>
<BR>
<BR>
<asp:TextBox id="TextBox1" runat="server"></asp:TextBox>
I tried to place the script in the head section of the Default.aspx
page but that only locked up my page.
.
- Follow-Ups:
- Re: ASP.Net Running total of Character Count on input
- From: Jim Underwood
- Re: ASP.Net Running total of Character Count on input
- References:
- Prev by Date: Re: Norton Blows up my application!
- Next by Date: Re: How to OPEN native PRINTER DIALOG -- Please HELP !!
- Previous by thread: ASP.Net Running total of Character Count on input
- Next by thread: Re: ASP.Net Running total of Character Count on input
- Index(es):
Relevant Pages
|
Loading