一个批量删除的异步调用

来源:百度知道 编辑:UC知道 时间:2024/05/14 05:54:00
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="checkBox.aspx.cs" Inherits="checkBox" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>TestCheckBox</title>
<style type="text/css">
.showred
{ color:Red;}
</style>
<script type="text/javascript">
function TestCheck()
{
var All=document.getElementById("Checkbox0");
var arraychecked =document.getElementsByNam

通过桥接重新构建 JavaScript

</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:Repeater ID="Test" runat="server" >
<ItemTemplate>
<input id="Checkbox1" name="checkall" type="checkbox" value="<%# Eval("id")%>"/>
<a href="#"><%# Eval("newstitle" )%> </a> <%# Eval("newstext") %><br />
</ItemTemplate>
</asp:Repeater>
<hr />
<input id="Checkbox0" type="checkbox" onclick="TestCheck()"/>

js语句:
var xmlHttp;
function clearSession()
{
var url = "这里是你要调用的url";
createXMLHttpRequest();
xmlH