1 <asp:Repeater ID="rpt" runat="server"> 2 <ItemTemplate> 3 <tr data-id="<%#Eval("FID")%>" data-key="FID" class="newTr"> 4 <td class="center"> 5 <%#Eval("FName")%> 6 </td> 7 <td class="left"> 8 <%#Eval("FRemark")%> 9 </td> 10 <td class="center"> 11 <%#Eval("FBegDate","{0:yyyy-MM-dd}")%> 12 </td> 13 <td class="center"> 14 <%#Eval("FEndDate","{0:yyyy-MM-dd}")%> 15 </td> 16 <td class="center"> 17 <input type="radio" value='<%#Eval("FID")%>' id="radioCheck" runat="server" name="rdo" /> 18 19 </td> 20 </tr> 21 </ItemTemplate> 22 <FooterTemplate> 23 <% 24 if (rpt != null && rpt.Items.Count == 0) 25 { 26 Response.Write("<tr><td colspan='15' style='color:red;text-align:center'>没有找到您要的相关数据!</td></tr>"); 27 } 28 %> 29 </FooterTemplate> 30 </asp:Repeater>
1 function SaveCinet() { 2 var val = $('input:radio[name="rdo"]:checked').val(); 3 if (val != null) { 4 if (confirm("确认申请?")) { 5 var FBillNo = $("#Check").val(); 6 var FUserID = $("#FUserID").val(); 7 $.post("/Ajax.ashx?action=AddActive", { "FBillNo": FBillNo, "FUserID": FUserID }, function (result) { 8 if (result == "1") { 9 alert("申请成功"); 10 Reset() 11 } 12 else { 13 alert(result); 14 Reset() 15 return; 16 } 17 }); 18 return true; 19 } 20 } 21 else { 22 alert("请选择一个活动!"); 23 return; 24 } 25 }