troubleshooting Question

Java - Total Fields on form load and reload

Avatar of WEhalt
WEhaltFlag for United States of America asked on
.NET ProgrammingVisual Basic.NET
1 Comment1 Solution327 ViewsLast Modified:
I have a javascript function called totalFields.  I would like it to run everytime any of the values is changed on the form, when the form is loaded, and when the form is (re) loaded with data.

How do I accomplishthis?  I have added attributes to some of the fields, but there must be a better way AND this does not calculate the totals when the data is loaded.

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Inbound.aspx.vb" Inherits="Inbound" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Inbound</title>
    <link href="eDailyClose.css" type="text/css" rel="stylesheet" />
    <script language="javascript" type="text/javascript">

        function totalFields() {}
    </script>
</head>
<body onkeydown="return disableEnterKey(event);" >
    <form id="form1" runat="server" >
    <center>
        <asp:Table ID="tblDailyClose" runat="server" Width="1500px"  >
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 1 Comment.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 1 Comment.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros