LostFocus or textChanged event of nopCommerce:NumericTextBox in a repeater qty change

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
13 年 前
Hi folks.

I am tring to implement a feature in a product template to display the total Price (price * qty) of a product variant when the user changes the quantity.

I have found how to get data from the boxes and labels in the repeater items (hopefully).
And use an Ajax update panel.

On an ordinary textbox I could use txtQuantity_TextChanged (with AutoPostBack="true" ) yes?

But it uses a nopCommerce:NumericTextBox which doesn't have such an event.

I'm sure this is a feature many have implemented.
Can anyone tell me how I do this or if there is a better way please?

I have also been trying Javascript method, but this gets rather complicated with getting Javascript arrays of repeater controls.

Thanks
(Already past my deadline Doh!)
13 年 前
Hmmm,

Might have found a way

http://oudinia.blogspot.com/2008/01/aspnet-textbox-user-control-with.html

asp.net 2.0 : TextBox User Control with TextChanged Event (Event Bubbling from user controls)


I would still like comments and opinions on this problem though.

I am using V 1.6

Thanks
13 年 前
I'm just curious why you're using the numeric text box... and why not just add the event to it?
13 年 前
The numeric Text box is how it was before I started to try and add it.
I have been pondering whether I should just change it to a plain one.
I'm leaving my decision for tommorow. Am brain dead now.

It has been quite an educational foray into the options though.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.