摘要:加入JavaScript的onclick() event到RadioButtonList上
後端程式碼(.cs)
RadioButtonList rbl = new RadioButtonList();
rbl.Attributes.Add("onclick", "javascript:ShowExt('Y2J')");
前端程式碼(JavaScript)
<script language=javascript type="text/javascript">
function ShowExt(object)
{
alert("Value Clicked :" + object);
}
</script>
Y2J's Life:http://kimenyeh.blogspot.tw/