文韬武略gaojingtao.blog.chinaunix.net
watergao
一句话介绍
全部博文(42)
2013年(1)
2012年(1)
2011年(11)
2010年(10)
2009年(6)
2008年(13)
小雅贝贝
jiangwen
格伯纳
cynthia
yejia805
yakyren
蓬勃而发
qidian13
OR_韩鑫
xwmyt
lin3255
分类:
2008-03-05 17:29:12
//写在Aspx前台中的代码
<script type="text/javascript"> var last = null;//最后访问的RadioButton的ID function judge(obj) { if(last == null) { last = obj.id; // alert(last); } else { var lo = document.getElementById(last); lo.checked = ""; // alert(last + " " + lo.checked); last = obj.name; } obj.checked = "checked"; } </script>
Protected Sub GridView1_RowDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GridView1.RowDataBound If e.Row.RowType = DataControlRowType.DataRow Then Dim rb As RadioButton = CType(e.Row.FindControl("rdo"), RadioButton) rb.Attributes.Add("onclick", "judge(this)") End If End Sub
上一篇:没有了
下一篇:oracle11g行列转换
chinaunix网友2008-04-08 01:43:54
fdsfd
登录 注册