首页上一页 1 下一页尾页 1 条记录 1/1页
还是上次的问题
发表在C#图书答疑
2009-06-08
是否精华
是
否
版块置顶:
是
否
我是说在内容页中的代码:
<%@ Page Language="C#" MasterPageFile="~/MasterPage/MainMasterPage.master" AutoEventWireup="true" CodeFile="AddBook.aspx.cs" Inherits="BookManage_AddBook" Title="Untitled Page" EnableEventValidation="false"%>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<table width="771" height="465" border="0" align="center" cellpadding="0" cellspacing="1" class="waikuang">
<tr>
<form name="form1" method="post" action="">
<td valign="top"><table width="756" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="756" height="24" colspan="3" align="right"> </td>
</tr>
<tr>
<td height="45" colspan="3" background="../images/tianjiaxiugaitushuxinxi.gif"> </td>
</tr>
<tr>
<td colspan="3" background="../images/tu shu pai hang2.gif"><table width="730" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td colspan="5" align="center"> </td>
</tr>
<tr>
<td width="175" height="26" align="right" class="daohang1"> </td>
<td width="66" align="center" class="daohang1">条形码:</td>
<td colspan="3"><label>
<asp:TextBox ID="txtBCode" runat="server"></asp:TextBox>
</label></td>
<td width="306" align="center"> </td>
</tr>
<tr>
<td height="28" align="right" class="daohang1"> </td>
<td height="28" align="center" class="daohang1">图书名称:</td>
<td colspan="3"><asp:TextBox ID="txtBName" runat="server"></asp:TextBox></td>
<td align="center"> </td>
</tr>
<tr>
<td height="25" align="right" class="daohang1"> </td>
<td height="25" align="center" class="daohang1">图书类型:</td>
<td colspan="3"><label>
<asp:DropDownList ID="ddlBType" runat="server" Width="155px">
</asp:DropDownList>
</label></td>
<td align="center"> </td>
</tr>
<tr>
<td height="29" align="right" class="daohang1"> </td>
<td height="29" align="center" class="daohang1">作者:</td>
<td colspan="3"><asp:TextBox ID="txtAuthor" runat="server"></asp:TextBox></td>
<td align="center"> </td>
</tr>
<tr>
<td height="25" align="right" class="daohang1"> </td>
<td height="25" align="center" class="daohang1">译者:</td>
<td colspan="3"><asp:TextBox ID="txtTranslator" runat="server"></asp:TextBox></td>
<td align="center"> </td>
</tr>
<tr>
<td height="25" align="right" class="daohang1"> </td>
<td height="25" align="center" class="daohang1">出版社:</td>
<td colspan="3"><asp:TextBox ID="txtPub" runat="server"></asp:TextBox></td>
<td align="center"> </td>
</tr>
<tr>
<td height="27" align="right" class="daohang1"> </td>
<td height="27" align="center" class="daohang1">价格:</td>
<td colspan="3"><asp:TextBox ID="txtPrice" runat="server"></asp:TextBox></td>
<td align="center"> </td>
</tr>
<tr>
<td height="24" align="right" class="daohang1"> </td>
<td height="24" align="center" class="daohang1">页码:</td>
<td colspan="3"><asp:TextBox ID="txtPage" runat="server"></asp:TextBox></td>
<td align="center"> </td>
</tr>
<tr>
<td height="27" align="right" class="daohang1"> </td>
<td height="27" align="center" class="daohang1">书架:</td>
<td colspan="3"><label>
<asp:DropDownList ID="ddlBCase" runat="server" Width="155px">
</asp:DropDownList>
</label></td>
<td align="center"> </td>
</tr>
<tr>
<td height="28" align="right" class="daohang1"> </td>
<td height="28" align="center" class="daohang1">库存数量:</td>
<td colspan="3"><asp:TextBox ID="txtStorage" runat="server"></asp:TextBox></td>
<td align="center"> </td>
</tr>
<tr>
<td height="25" align="right" class="daohang1"> </td>
<td height="25" align="center" class="daohang1">入馆时间:</td>
<td colspan="3"><asp:TextBox ID="txtInTime" runat="server"></asp:TextBox></td>
<td align="center" style="text-align: left" class="daohang1">(格式为2007-01-01) </td>
</tr>
<tr>
<td height="26" align="right" class="daohang1"> </td>
<td height="26" align="center" class="daohang1">操作员:</td>
<td colspan="3"> <asp:TextBox ID="txtOper" runat="server"></asp:TextBox></td>
<td align="center"> </td>
</tr>
<tr>
<td height="25" colspan="2" align="center"> </td>
<td colspan="3"><label>
</label>
<label>
</label>
<asp:Button ID="btnAdd" runat="server" Enabled="False" OnClick="btnAdd_Click" Text="添加" />
<asp:Button ID="btnSave" runat="server" Text="修改" OnClick="btnSave_Click" Enabled="False" />
<asp:Button ID="btnCancel" runat="server" Text="取消" OnClick="btnCancel_Click" /></td>
<td align="center"> </td>
</tr>
</table>
<p>
<label></label>
</p>
</td>
</tr>
<tr>
<td height="4" colspan="3" valign="top" background="../images/tu shu pai hang3.gif"></td>
</tr>
</table>
</td></form>
</tr>
</table>
</asp:Content>
控件Content在工具箱中找不到。同时在“拆分”模式下单击页面查看属性则显示为document控件,而页面上却没有这个控件,求教原因。
<%@ Page Language="C#" MasterPageFile="~/MasterPage/MainMasterPage.master" AutoEventWireup="true" CodeFile="AddBook.aspx.cs" Inherits="BookManage_AddBook" Title="Untitled Page" EnableEventValidation="false"%>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<table width="771" height="465" border="0" align="center" cellpadding="0" cellspacing="1" class="waikuang">
<tr>
<form name="form1" method="post" action="">
<td valign="top"><table width="756" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="756" height="24" colspan="3" align="right"> </td>
</tr>
<tr>
<td height="45" colspan="3" background="../images/tianjiaxiugaitushuxinxi.gif"> </td>
</tr>
<tr>
<td colspan="3" background="../images/tu shu pai hang2.gif"><table width="730" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td colspan="5" align="center"> </td>
</tr>
<tr>
<td width="175" height="26" align="right" class="daohang1"> </td>
<td width="66" align="center" class="daohang1">条形码:</td>
<td colspan="3"><label>
<asp:TextBox ID="txtBCode" runat="server"></asp:TextBox>
</label></td>
<td width="306" align="center"> </td>
</tr>
<tr>
<td height="28" align="right" class="daohang1"> </td>
<td height="28" align="center" class="daohang1">图书名称:</td>
<td colspan="3"><asp:TextBox ID="txtBName" runat="server"></asp:TextBox></td>
<td align="center"> </td>
</tr>
<tr>
<td height="25" align="right" class="daohang1"> </td>
<td height="25" align="center" class="daohang1">图书类型:</td>
<td colspan="3"><label>
<asp:DropDownList ID="ddlBType" runat="server" Width="155px">
</asp:DropDownList>
</label></td>
<td align="center"> </td>
</tr>
<tr>
<td height="29" align="right" class="daohang1"> </td>
<td height="29" align="center" class="daohang1">作者:</td>
<td colspan="3"><asp:TextBox ID="txtAuthor" runat="server"></asp:TextBox></td>
<td align="center"> </td>
</tr>
<tr>
<td height="25" align="right" class="daohang1"> </td>
<td height="25" align="center" class="daohang1">译者:</td>
<td colspan="3"><asp:TextBox ID="txtTranslator" runat="server"></asp:TextBox></td>
<td align="center"> </td>
</tr>
<tr>
<td height="25" align="right" class="daohang1"> </td>
<td height="25" align="center" class="daohang1">出版社:</td>
<td colspan="3"><asp:TextBox ID="txtPub" runat="server"></asp:TextBox></td>
<td align="center"> </td>
</tr>
<tr>
<td height="27" align="right" class="daohang1"> </td>
<td height="27" align="center" class="daohang1">价格:</td>
<td colspan="3"><asp:TextBox ID="txtPrice" runat="server"></asp:TextBox></td>
<td align="center"> </td>
</tr>
<tr>
<td height="24" align="right" class="daohang1"> </td>
<td height="24" align="center" class="daohang1">页码:</td>
<td colspan="3"><asp:TextBox ID="txtPage" runat="server"></asp:TextBox></td>
<td align="center"> </td>
</tr>
<tr>
<td height="27" align="right" class="daohang1"> </td>
<td height="27" align="center" class="daohang1">书架:</td>
<td colspan="3"><label>
<asp:DropDownList ID="ddlBCase" runat="server" Width="155px">
</asp:DropDownList>
</label></td>
<td align="center"> </td>
</tr>
<tr>
<td height="28" align="right" class="daohang1"> </td>
<td height="28" align="center" class="daohang1">库存数量:</td>
<td colspan="3"><asp:TextBox ID="txtStorage" runat="server"></asp:TextBox></td>
<td align="center"> </td>
</tr>
<tr>
<td height="25" align="right" class="daohang1"> </td>
<td height="25" align="center" class="daohang1">入馆时间:</td>
<td colspan="3"><asp:TextBox ID="txtInTime" runat="server"></asp:TextBox></td>
<td align="center" style="text-align: left" class="daohang1">(格式为2007-01-01) </td>
</tr>
<tr>
<td height="26" align="right" class="daohang1"> </td>
<td height="26" align="center" class="daohang1">操作员:</td>
<td colspan="3"> <asp:TextBox ID="txtOper" runat="server"></asp:TextBox></td>
<td align="center"> </td>
</tr>
<tr>
<td height="25" colspan="2" align="center"> </td>
<td colspan="3"><label>
</label>
<label>
</label>
<asp:Button ID="btnAdd" runat="server" Enabled="False" OnClick="btnAdd_Click" Text="添加" />
<asp:Button ID="btnSave" runat="server" Text="修改" OnClick="btnSave_Click" Enabled="False" />
<asp:Button ID="btnCancel" runat="server" Text="取消" OnClick="btnCancel_Click" /></td>
<td align="center"> </td>
</tr>
</table>
<p>
<label></label>
</p>
</td>
</tr>
<tr>
<td height="4" colspan="3" valign="top" background="../images/tu shu pai hang3.gif"></td>
</tr>
</table>
</td></form>
</tr>
</table>
</asp:Content>
控件Content在工具箱中找不到。同时在“拆分”模式下单击页面查看属性则显示为document控件,而页面上却没有这个控件,求教原因。