标签:ted asp grid lower pos cte body ext name
<asp:GridView onclick="javascript:SelectedIndexChanged()" ID="GridView1" runat="server">
</asp:GridView>
<script type="text/javascript">
function SelectedIndexChanged()
{
event.cancelBubble=true;
var the_obj = event.srcElement;
if(the_obj.tagName.toLowerCase() != "table" && the_obj.tagName.toLowerCase() != "tbody" && the_obj.tagName.toLowerCase() != "tr")
{
cur_row = the_obj.parentElement.rowIndex;
if(cur_row!=0)
{
__doPostBack("GridView1",cur_row);
}
}
}
</script>
怎么触发gridview 的SelectedIndexChanged事件?
标签:ted asp grid lower pos cte body ext name
原文地址:https://www.cnblogs.com/asdyzh/p/9745971.html