文本更改事件上的html文本运行c#代码 [英] html text on text change event run c# code

查看:108
本文介绍了文本更改事件上的html文本运行c#代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好

我的项目是在线商店

当我在购物车页面上显示时,我得到产品名称和数量请求

所以文本框中的数量显示

i尝试将事件添加到文本框中,当我更改数值时,我将运行一些c#代码

这是我用来生成mt文本框的一些代码/>
html.Append(< input type ='text'name ='Quantity'value ='+ row [QTY] +'>);



如何在c#代码中添加事件运行方法?

请帮助:)

解决方案

你能看看



http://jsfiddle.net/TheSniper102 / 0rx3h9xt / 2 / [ ^ ]

hi all
my project is online shop
and when i display on cart page i get product name and quantity requested
so the quantity display in textbox
i try to add event to textbox , when i change qty value i will run some c# code
this is some code i used to generate mt textbox
html.Append("<input type='text' name='Quantity' value='" + row["QTY"] + "'>");

how can i add event to run method in c# code ?
please help :)

解决方案

can you check that

http://jsfiddle.net/TheSniper102/0rx3h9xt/2/[^]


这篇关于文本更改事件上的html文本运行c#代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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