日期:2014-05-17  浏览次数:20401 次

为何我点击 提交 按钮 ,没有跳转至 submt?
<%@ Page Language="C#" Debug="true" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!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></title>
    <style type="text/css">
        .style1
        {
            width: 173px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server" method="post" action="default.aspx" >
    
    <div>    
        <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
            AllowSorting="True" AutoGenerateColumns="False">
            <Columns>
                <asp:BoundField DataField="pname" HeaderText="留言人">
                <HeaderStyle BorderColor="#FFFF99" />
                </asp:BoundField>
                <asp:BoundField DataField="content" HeaderText="留言内容">
                <HeaderStyle BorderColor="#FFFF99" />
                </asp:BoundField>
                <asp:BoundField DataField="tdate" DataFormatString="{0:M-dd-yyyy}" 
                    HeaderText="日期">
                <HeaderStyle BorderColor="#FFFF99" />
                </asp:BoundField>
            </Columns>
        </asp:GridView>
    </div>
    <table width="399" id="table1">
    <tr>
    <td colspan=2> 查询留言内容</td>
    
     </tr>
     
     <tr>
     <td class="style1">按姓名查 <input type="checkbox" name="chkname" value="0" onclick="check()"/></td>
      <td>按时间查 <input type="checkbox" name="chktime" value="0" onclick="check()"/></td>

&n