随便做了一个看看是不是你说的
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default3.aspx.cs" Inherits="Default3" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.
<html xmlns="http://www. >
<head runat="server">
<title>无标题页</title>
<script type="text/javascript">
function CheckChang(obj)
{
var link=document.getElementById("link_"+obj.value);
if(obj.selected==true)
{
link.innerText="未审核";
}
else
{
link.innerText="已审核";
}
obj.selected=!obj.selected;
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False" DataMember="DefaultView" DataSourceID="SqlDataSource1">
<Columns>
<asp:TemplateField>
<HeaderTemplate>
<span >ID</span>
</HeaderTemplate>
<ItemTemplate>
<input type="checkbox" id='chk_<%# Eval("id") %>' title="id" value="<%# Eval("id") %>" onclick="CheckChang(this);" />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField>
<HeaderTemplate>
<span>结果</span>
</HeaderTemplate>
<ItemTemplate>
<a href="http:// id='link_<%# Eval("id") %>' target="_blank" >未审核</a>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:BYTConnectionString %>"
SelectCommand="SELECT [id] FROM [City]"></asp:SqlDataSource>
</div>
</form>
</body>
</html>
[
本帖最后由 zgzhly 于 2009-8-6 17:03 编辑 ]