?? studentmain.aspx
字號:
<%@ Page language="c#" Codebehind="studentMain.aspx.cs" AutoEventWireup="false" Inherits="web.WebForm1" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>WebForm1</title>
<meta content="True" name="vs_showGrid">
<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
<meta content="C#" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
</HEAD>
<body>
<form id="Form1" method="post" runat="server">
<FONT face="宋體">
<asp:panel id="pnl_Add" style="Z-INDEX: 102; LEFT: 152px; POSITION: absolute; TOP: 72px" runat="server"
Height="200px" Width="384px">
<P>
<asp:Label id="Label1" runat="server">學號:</asp:Label>
<asp:TextBox id="txt_studentID" runat="server"></asp:TextBox></P>
<P>
<asp:Label id="Label2" runat="server">姓名:</asp:Label>
<asp:TextBox id="txt_studentName" runat="server"></asp:TextBox></P>
<P>
<asp:Label id="Label3" runat="server">性別:</asp:Label>
<asp:DropDownList id="ddl_sex" runat="server" Width="156px">
<asp:ListItem Value="男" Selected="True">男</asp:ListItem>
<asp:ListItem Value="女">女</asp:ListItem>
</asp:DropDownList></P>
<P>
<asp:Label id="Label4" runat="server">年齡:</asp:Label>
<asp:TextBox id="txt_studentAge" runat="server"></asp:TextBox></P>
<P>
<asp:Button id="btn_ok" runat="server" Width="64px" Text="提交"></asp:Button></P>
</asp:panel>
<P>
</P>
<P> </P>
<P> </P>
<P> </P>
<P> <FONT face="宋體">
</FONT>
</P>
<P> </P>
<P> </P>
<P> </P>
<P> </P>
<P>
<asp:panel id="pnl_Sel" style="Z-INDEX: 103; LEFT: 152px; POSITION: absolute; TOP: 282px" runat="server"
Height="209px" Width="385px">
<asp:DataGrid id="dg_addStu" runat="server" Width="656px" AutoGenerateColumns="False" BorderColor="#CC9966"
BorderStyle="None" BorderWidth="1px" BackColor="White" CellPadding="4">
<SelectedItemStyle Font-Bold="True" ForeColor="#663399" BackColor="#FFCC66"></SelectedItemStyle>
<ItemStyle Height="30px" ForeColor="#330099" BackColor="White"></ItemStyle>
<HeaderStyle Font-Bold="True" Height="40px" ForeColor="#FFFFCC" BackColor="#990000"></HeaderStyle>
<FooterStyle ForeColor="#330099" BackColor="#FFFFCC"></FooterStyle>
<Columns>
<asp:BoundColumn DataField="sid" ReadOnly="True" HeaderText="學號">
<HeaderStyle Width="100px"></HeaderStyle>
</asp:BoundColumn>
<asp:BoundColumn DataField="sname" ReadOnly="True" HeaderText="姓名">
<HeaderStyle Width="70px"></HeaderStyle>
</asp:BoundColumn>
<asp:BoundColumn DataField="ssex" ReadOnly="True" HeaderText="性別">
<HeaderStyle Width="70px"></HeaderStyle>
</asp:BoundColumn>
<asp:BoundColumn DataField="sage" ReadOnly="True" HeaderText="年齡">
<HeaderStyle Width="70px"></HeaderStyle>
</asp:BoundColumn>
<asp:BoundColumn DataField="sgrade" HeaderText="成績">
<HeaderStyle Width="70px"></HeaderStyle>
</asp:BoundColumn>
<asp:ButtonColumn Text="刪除" HeaderText="操作" CommandName="Delete">
<HeaderStyle Width="70px"></HeaderStyle>
</asp:ButtonColumn>
<asp:EditCommandColumn ButtonType="LinkButton" UpdateText="更新" HeaderText="編輯" CancelText="取消" EditText="編輯">
<HeaderStyle Width="120px"></HeaderStyle>
<ItemStyle Wrap="False"></ItemStyle>
</asp:EditCommandColumn>
</Columns>
<PagerStyle HorizontalAlign="Center" ForeColor="#330099" BackColor="#FFFFCC"></PagerStyle>
</asp:DataGrid>
</asp:panel></P>
<P> </P>
</FONT>
</form>
</body>
</HTML>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -