日期:2014-05-18  浏览次数:20561 次

设计时有checkbox,运行时就没有了,我是拖放过去的,估计是html的问题,所以把html代码复制过来了
设计时有checkbox,运行时就没有了,我是拖放过去的,估计是html的问题,所以把html代码复制过来了:
<%@   Page   Language= "C# "   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>
</head>
<body>
        <form   id= "form1 "   runat= "server ">
        <div>
                &nbsp;&nbsp;
                <asp:Button   ID= "btn_update "   runat= "server "   Style= "z-index:   101;   left:   270px;   position:   absolute;
                        top:   139px "   Text= "修改 "   OnClick= "btn_update_Click "   />
                <asp:Button   ID= "btn_Del "   runat= "server "   Style= "left:   304px;   position:   relative;   top:   122px "
                        Text= "删除 "   OnClick= "btn_Del_Click "   />
                <asp:Button   ID= "btn_search "   runat= "server "   Style= "left:   335px;   position:   relative;
                        top:   123px "   Text= "查询 "   OnClick= "btn_search_Click "   CausesValidation= "False "   />
                <asp:CustomValidator   ID= "CustomValidator1 "   runat= "server "   ControlToValidate= "txtID "
                        Display= "Dynamic "   ErrorMessage= "该用户已经存在 "   OnServerValidate= "CustomValidator1_ServerValidate "
                        Style= "z-index:   102;   left:   426px;   position:   absolute;   top:   15px "> </asp:CustomValidator>
                <asp:RequiredFieldValidator   ID= "RequiredFieldValidator1 "   runat= "server "   ControlToValidate= "txtName "
                        ErrorMessage= "* "   Style= "z-index:   103;   left:   430px;   position:   absolute;   top:   43px "> </asp:RequiredFieldValidator>
                <asp:Button   ID= "btn_Add "   runat= "server "   Style= "z-index:   104;   left:   201px;   position:   absolute;