Re: ASP.Net Running total of Character Count on input



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.

.



Relevant Pages

  • Re: Multi-Level BOM (Bill of Materials)
    ... > Thanks for your response MG =) I have tried this example as well, ... I will try show you how I see it in my head (I hope the ... > formatting stays): ... Prev by Date: ...
    (microsoft.public.access.queries)
  • Re: Multi-Level BOM (Bill of Materials)
    ... > Thanks for your response MG =) I have tried this example as well, ... I will try show you how I see it in my head (I hope the ... > formatting stays): ... Prev by Date: ...
    (microsoft.public.access.queries)
  • Re: How to modify tag when using a master page?
    ... style in the head, but you can put script just about anywhere. ... So, don't worry about it... ... Prev by Date: ...
    (microsoft.public.dotnet.framework.aspnet)
  • newbie question about switch, form and table
    ... I want to run a simple script which returns the user's input: ... When I enter "green" and click on the Submit button, the response is the ...
    (comp.lang.php)
  • Re: Installiing Application on multiple computers from a single PC
    ... > dear Peter thank u very much for ur response, can u please help me finding ... > out a right script and my next question is that how the users will be able ... Prev by Date: ...
    (microsoft.public.windowsxp.work_remotely)

Loading