Attributes.Add返回javascript窗口的问题

按钮控件可以使用button.Attributes.Add("Onclick", "Javascript:return confirm('请确认?');");
我想在dropdownlist中实现选择项改变时出现提示,怎么实现?
ddl.Attributes.Add("OnSelectedIndexChanged", "Javascript:return confirm('请确认?');");好像不行
另外,这种用法有没有详细的帮助?本人现在只是照葫芦画葫芦,想学习一下
[280 byte] By [plst-大晒] at [2008-1-9]
# 1
ddl.Attributes.Add("onchange", "javascript:return confirm('请确认?');");
cpp2017-慕白兄 at 2007-9-30 > top of Msdn China Tech,.NET技术,ASP.NET...
# 2
但这个实现不要想要的效果.
cpp2017-慕白兄 at 2007-9-30 > top of Msdn China Tech,.NET技术,ASP.NET...
# 3
这样可判断后再提交,但客户端的选项一样会选中. ddl.Attributes.Add("onchange", "javascript:if( confirm('请确认?'))");
cpp2017-慕白兄 at 2007-9-30 > top of Msdn China Tech,.NET技术,ASP.NET...
# 4
佩服cpp2017(幕白兄)
70%的帖都有他
aftnTea-faith at 2007-9-30 > top of Msdn China Tech,.NET技术,ASP.NET...
# 5
不好意思 ^_^
cpp2017-慕白兄 at 2007-9-30 > top of Msdn China Tech,.NET技术,ASP.NET...
# 6

佩服cpp2017(幕白兄)
70%的帖都有他

??????
这个贴好像没他哦
huazi4995-華仔 at 2007-9-30 > top of Msdn China Tech,.NET技术,ASP.NET...
# 7
哦,难道慕白兄改名了,那太可惜了
慕白这个名多有名啊,在csdn里
huazi4995-華仔 at 2007-9-30 > top of Msdn China Tech,.NET技术,ASP.NET...
# 8
只能这样了!
plst-大晒 at 2007-9-30 > top of Msdn China Tech,.NET技术,ASP.NET...
# 9
呵呵,过两天再改回来。总要穿几天新衣服吧。
cpp2017-慕白兄 at 2007-9-30 > top of Msdn China Tech,.NET技术,ASP.NET...