Server sside or client u can always well many ways but textbox(name vale id 
javacript ;'if(this.value.length=or grather then I d...@t have that sys on my 
phone 7 '); u also double quotes or just decalre a new type if its 9 send it 
back

-----Original Message-----
From: aric <[email protected]>
Sent: Wednesday, February 03, 2010 10:30 AM
To: DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web 
Services,.NET Remoting <[email protected]>
Subject: [DotNetDevelopment] Sum textboxes inside a gridview

I have two textbox and a label inside a gridview. I want the label to
be updated as soon as a number is typed into the textbox. I dont want
to use the OnTextChange because that will postback every time. how can
I do the calculation using Javascript ?


My Code:

        <asp:GridView runat="server" ID="gvOB"
AutoGenerateColumns="false" DataKeyNames="CID"
        ShowHeader="true" HeaderStyle-Wrap="True" CellPadding="2"
ForeColor="#333333"
        GridLines="None" Width="100%" RowStyle-HorizontalAlign="Left"
HorizontalAlign="Center" EmptyDataText="No Actions" ShowFooter="True">
        <RowStyle BackColor="#EFF3FB" />

            <Columns>
                <asp:BoundField DataField="CID" HeaderText="#"
HeaderStyle-HorizontalAlign="Center" ItemStyle-
horizontalAlign="Right" />
                <asp:BoundField DataField="Descr" HeaderText="Clinical
Interactions & Professionalism" HeaderStyle-HorizontalAlign="Center" /
>

                <asp:TemplateField HeaderText="Midterm" HeaderStyle-
HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center">


[The entire original message is not included]

Reply via email to