首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > asp.net >

Dropdownlist的SelectedIndex的有关问题?

2012-01-20 
Dropdownlist的SelectedIndex的问题???Me.DropDownList1.Attributes.Add( onchange ,javascript:alert(

Dropdownlist的SelectedIndex的问题???
Me.DropDownList1.Attributes.Add( "onchange ",   "javascript:alert(document.all( 'DropDownList1 ').SelectedIndex); ")
这样写弹出来是undefined

[解决办法]
不好意思错了..
Me.DropDownList1.Attributes.Add( "onchange ", "javascript:alert(document.all( 'DropDownList1 ').selectedIndex); ")要注意大小写

热点排行