📄 showtiankong.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="showTianKong.aspx.cs" Inherits="showTianKong" %>
<!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 id="Head1" runat="server">
<title>无标题页</title>
<link href="css/child.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<table id="mytable" cellspacing="0" align="center" style="border-color:#669999" border="1" width="850" cellpadding="0">
<tr>
<td colspan="1" style="height: 119px; width: 115px;"><font face="宋体"><span style="font-size: 10pt">
<div style="DISPLAY: inline; WIDTH: 96px; HEIGHT: 18px" ms_positioning="FlowLayout">请选择科目:</div>
</span> </font>
</td>
<td colspan="1" style="width: 267px; height: 119px;">
<asp:UpdatePanel ID="UpdatePanel2" runat="server">
<ContentTemplate>
<asp:dropdownlist id="ddl_course" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddl_course_SelectedIndexChanged"></asp:dropdownlist>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="ddl_course" EventName="SelectedIndexChanged" />
</Triggers>
</asp:UpdatePanel><asp:RadioButton ID="rbtn_showall" runat="server" Checked="True" GroupName="1" Text="显示全部"/>
<asp:RadioButton ID="rbtn_showpub" runat="server" GroupName="1" Text="发布" /><asp:RadioButton
ID="rbtn_shownopub" runat="server" GroupName="1" Text="未发布" /></td>
<td colspan="1" style="height: 119px">
<asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/image/yes.gif" OnClick="ImageButton1_Click" />
</td>
<td colspan="1" style="width: 47px; height: 119px">
<div style="DISPLAY: inline; WIDTH: 70px; HEIGHT: 15px" ms_positioning="FlowLayout">科目ID:</div>
</td>
<td colspan="1" style="width: 94px; height: 119px;">
<asp:UpdatePanel ID="UpdatePanel3" runat="server">
<ContentTemplate>
<asp:label id="lbl_courseId" runat="server">1</asp:label>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="ddl_course" EventName="SelectedIndexChanged" />
</Triggers>
</asp:UpdatePanel>
</td>
</tr>
<tr>
<td colspan="5" style="height: 34px; text-align: left;">
<FONT face="宋体"> </FONT>
<asp:ImageButton ID="ImageButton2" runat="server" ImageUrl="~/image/新增.gif" OnClick="ImageButton2_Click" /></td>
</tr>
<tr>
<td colspan="5" align="center"><font face="宋体"></font>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False"
CellPadding="4" ForeColor="#333333" GridLines="None" OnPageIndexChanging="GridView1_PageIndexChanging"
OnRowDeleting="GridView1_RowDeleting" Width="844px" DataKeyNames="testId" OnRowCommand="GridView1_RowCommand">
<FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
<Columns>
<asp:BoundField DataField="testId" HeaderText="ID" SortExpression="testId" Visible="False" >
<ItemStyle HorizontalAlign="Left" />
</asp:BoundField>
<asp:BoundField DataField="testContent" HeaderText="题干" SortExpression="testContent" >
<ItemStyle HorizontalAlign="Left" />
</asp:BoundField>
<asp:BoundField DataField="pub" HeaderText="发布" SortExpression="pub" >
<ItemStyle HorizontalAlign="Left" />
</asp:BoundField>
<asp:ButtonField HeaderText = "查看详细" ButtonType="Button" Text ="查看/修改" CommandName="Detail" >
<ItemStyle HorizontalAlign="Left" />
</asp:ButtonField>
<asp:TemplateField HeaderText="删除">
<ItemTemplate>
<asp:LinkButton ID="LinkButton2" runat="server" CausesValidation="False" CommandName="Delete"
Text="删除" OnClientClick="return confirm('您确定要删除吗?')" ></asp:LinkButton>
</ItemTemplate>
<ItemStyle HorizontalAlign="Left" />
</asp:TemplateField>
</Columns>
<RowStyle BackColor="#E3EAEB" />
<EditRowStyle BackColor="#7C6F57" />
<SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
<PagerStyle BackColor="#666666" ForeColor="Black" HorizontalAlign="Center" />
<HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
<AlternatingRowStyle BackColor="White" />
</asp:GridView>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="GridView1" EventName="PageIndexChanging" />
<asp:AsyncPostBackTrigger ControlID="GridView1" EventName="RowDeleting" />
<asp:AsyncPostBackTrigger ControlID="ImageButton1" EventName="Click" />
</Triggers>
</asp:UpdatePanel>
<asp:Label id="lbl_noResult" runat="server" ForeColor="Red" Visible="False">没有满足要求的记录</asp:Label></td>
</tr>
</table>
</div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -