Listview textcahge事件未触发. [英] Listview textcahge event not getting fired.

查看:90
本文介绍了Listview textcahge事件未触发.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

下午好朋友,
我正在Asp.net 3.5框架Visual Studio 2008中开发网站.
我要实现的是,我有1个列表视图,因为我正在显示一些产品及其价格,所以现在我要允许客户在文本框中输入数量,当他在数量选项卡上时,价格和数量应该成倍增加,我在文本框的textchanged上尝试了此操作,但事件没有被触发.请帮助我.
最好的问候,
Santosh More

Good Afternoon friends,
I am developing website in Asp.net 3.5 framework visual studio 2008.
What I want to achieve is that I have 1 listview in that I am displaying some products and its price so now I want to allow customer to enter the quantity in the text box and when he tabs the quantity then the price and quantity should get multiplied,I tried this on textchanged of the text box but the event is not getting fired.please help me.
Best Regards,
Santosh More

推荐答案

实现一些javascript计算价格和数量.通过在数量文本框的onBlur事件上触发脚本,您可以相应地更新价格.

< input type ="text" id ="txtQuantity" onblur ="calcualteValues()">
implement some javascript calculate the price and quantity. By firing the script on the quantity text box onBlur event you could then update the prices accordingly.

<input type="text" id="txtQuantity" onblur="calcualteValues()">


尝试将自动回发更改为true ..
单击文本框,然后将自动回发"更改为true.然后将触发该事件.
try changing the autopostback to true ..
Click the textbox and change the Autopostback to true .. Then it will fire the event..


这可能对您有所帮助
http://forums.asp.net/t/1760276.aspx /1 [ ^ ]
This may help you
http://forums.asp.net/t/1760276.aspx/1[^]


这篇关于Listview textcahge事件未触发.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆