当前位置: 代码迷 >> ASP.NET >> GridView选中行获取ID有关问题
  详细解决方案

GridView选中行获取ID有关问题

热度:1362   发布时间:2013-02-25 00:00:00.0
GridView选中行获取ID问题
<asp:GridView   ID= "gvSelPatient "   runat= "server "   AllowSorting= "false "   AutoGenerateColumns= "false "
                                                                        DataKeyNames= "PatientID "   HeaderStyle-Wrap= "true "   OnRowDataBound= "gvSelPatient_RowDataBound "
                                                                        Width= "100% "   OnRowCommand= "gvSelPatient_RowCommand ">
                                                                        <Columns>
                                                                                <asp:TemplateField   HeaderText= "选择 "   ItemStyle-Width= "7% ">
                                                                                        <ItemTemplate>
                                                                                                <%-- <a   id= "lbSelect "   href= "# "   onclick= "choice() "> 选择 </a> --%>
                                                                                                <%--   <a   id= "lkSelect "   href= "# "   onclick= "setPatientInfo() "> 选择 </a> --%>
                                                                                                <input   name= "mycheck "   onclick= "choice(this) "   type= "checkbox "   value= "选择 "   />
                                                                                                <%-- <input   onclick= "white(this) "   type= "radio "   value= "选择 "   /> --%>