Client-side Totalling

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Tobe

    #1

    Client-side Totalling

    On my web page, in a datagrid, are a bunch of textboxes.
    I want to keep a running total as the user changes the
    numbers. It a fairly large page, so I don't want to keep
    hitting the server.

    Is there a way to use, clientside, an 'onTextChanged'
    type function? How?
  • Ray Dixon [MVP]

    #2
    Re: Client-side Totalling

    Hi Tobe,

    I would take a look at the RegisterClientS criptBlock method
    (http://msdn.microsoft.com/library/de...-us/cpref/html
    /frlrfSystemWebU IPageClassRegis terClientScript BlockTopic.asp) and the
    possibility of using it in the ItemDataBound event of the DataGrid to set
    the onchange event
    (http://msdn.microsoft.com/library/de...uthor/dhtml/re
    ference/events/onchange.asp) for the textboxes.

    Good luck!


    --
    Ray Dixon - Microsoft MVP
    ray@NOSPAM.gree ble.com
    (remove NOSPAM. from my e-mail address for a direct reply)




    "Tobe" <tobep@vantagec ontrols.com> wrote in message
    news:4b5301c356 a4$093d3f60$a00 1280a@phx.gbl.. .[color=blue]
    > On my web page, in a datagrid, are a bunch of textboxes.
    > I want to keep a running total as the user changes the
    > numbers. It a fairly large page, so I don't want to keep
    > hitting the server.
    >
    > Is there a way to use, clientside, an 'onTextChanged'
    > type function? How?[/color]


    Comment

    Working...