Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1465
How to access WNE in datalist on client to tally total
posted

Hello.

I'm writing an order entry system and I'm using 2008, Vol1 WebNumericEdit controls inside a datalist control. The DL control shows the item name and the WNE captures the quantity.

On the same page is a total (an asp:Label control).

What I want to do is recalculate the total as the user enters a number in one of the WNE controls in the datalist. So, in essence, I'd have to read through all of the WNE controls in the datalist, summing up the quantities to yield the total, which I will then use to update the asp:Label that displays the total.

I'm looking at the CSOM, but if someone could give me a nudge in the right direction I'd appreciate it.

Thanks in advance,

Mike

Parents
No Data
Reply
  • 1465
    posted

    I solved it by utilizing the datalist's ItemDataBound event, and writing a line of javascript code, which is eventually is registered with the page.

Children
No Data