从Gridview内部的dropdownList中选择值时如何获取消息框 [英] how to get message box on selection of a value from dropdownList which is Inside the Gridview

查看:79
本文介绍了从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 create UserControl for DropDownList and add the javascript in the Attribute ''OnChange'' event.

Its working fine for me in GridView Control.


这篇关于从Gridview内部的dropdownList中选择值时如何获取消息框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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