
将你的整张页码代码改成下面的就可以了。
<%@ Page title="主页" Language="C#" MasterPageFile="~/Sitemaster" AutoEventWireup="true"
CodeFile="StudentManageraspxcs" Inherits="_Default" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<p>
<form id ="form1"runat="server">
<div>
<table>
<tr>
<td colspan ="3"style="height:55px">
<asp:Label ID ="Label1" runat ="server" BorderColor ="#FFFFC0" Font-Bold="true" Font-Size="XX-Large"
Font-Underline="true" ForeColor ="Blue" Height ="55px" Text="学生信息管理" Width="389px"></asp:Label>
</td>
</tr>
<tr>
<td style ="width :44px;height:160px">
<asp:TextBox ID ="Textbox2" runat="server" Height ="147px" TextMode="MultiLine" Width ="192px" Forecolor="MidnightBlue">说明:
1、选择上下按钮可以改变学生信息的排列信息;
2、选择“编辑”按钮可以改变你所选择的学生信息;
3、选择“删除”按钮可以删除你所选择的学生信息;
4、选择“添加”按钮可以添加你要添加的学生信息;
</asp:TextBox> </td>
<td style ="width :85px;height:160px "valign="top">
<asp:ListBox ID="StudentList" runat="server"></asp:ListBox></td>
<td style ="width :78px;height:160px">
<asp:Button ID="deleteBtn" runat="server" onclick="deleteBtn_Click"
style="margin-top: 0px" Text="删除" />
<asp:Button ID="editBtn" runat="server" Text="编辑" OnClick="editBtn_Click" /><br/>
<asp:Button ID="AddBtn" runat="server" Text="添加" OnClick="AddBtn_Click" /><br/>
</tr>
<tr>
<td colspan ="3">
<asp:TextBox ID ="TextBox3" runat="server" Width ="484px"></asp:TextBox></td>
</tr>
</table>
</div>
</form>
</p>
</asp:Content>
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)