从Gridview内部的dropdownList中选择值时如何获取消息框 [英] how to get message box on selection of a value from dropdownList which is Inside the Gridview
本文介绍了从Gridview内部的dropdownList中选择值时如何获取消息框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
朋友们,
在下拉列表中选择值时,我在Gridview控件中有一个下拉控件
将弹出一个消息框,显示相关消息.
怎么可以实现
请回复.
aamir
Hi friends,
i have a dropdown control inside Gridview control, on selection of values from the dropdown
a message box should Pop-Up showing the related message.
how can it be acheivable
Pl reply.
aamir
推荐答案
使用下拉菜单的OnSelectedChange事件并在该事件中写入要写入的数据.
use OnSelectedChange event of the dropdown and write the data you want to write inside that event .
Aamir.
您可以为DropDownList
创建UserControl
并将javascript
添加到属性``OnChange''事件中.
在GridView
Control中对我来说工作正常.
Hi Aamir.
You can createUserControl
forDropDownList
and add thejavascript
in the Attribute ''OnChange'' event.
Its working fine for me inGridView
Control.
这篇关于从Gridview内部的dropdownList中选择值时如何获取消息框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文