📄 default.aspx
字号:
<%@ Page Language="VB" MasterPageFile="~/student/studentMasterPage.master" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="student_Default" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<asp:Label ID="Label1" runat="server" Font-Bold="True" Font-Size="X-Large"
ForeColor="#FF80FF" Height="31px" Style="position: relative" Text="最近的通知:" Width="166px"></asp:Label>
<asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True"
AutoGenerateColumns="False" BackColor="White" BorderColor="#DEDFDE" BorderStyle="None"
BorderWidth="1px" CellPadding="4" DataSourceID="SqlDataSource1" ForeColor="Black"
GridLines="Vertical" Height="297px" Style="position: relative" Width="743px">
<FooterStyle BackColor="#CCCC99" />
<RowStyle BackColor="#F7F7DE" />
<SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
<PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
<HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
<AlternatingRowStyle BackColor="White" />
<Columns>
<asp:BoundField DataField="NoticeNo" HeaderText="通知编号" ReadOnly="True" SortExpression="NoticeNo" />
<asp:BoundField DataField="NoticeTitle" HeaderText="标题" SortExpression="NoticeTitle" />
<asp:BoundField DataField="Date" HeaderText="日期" SortExpression="Date" />
<asp:HyperLinkField DataNavigateUrlFields="NoticeNo" DataNavigateUrlFormatString="~/Student/NoticeDetail.aspx?id={0}"
Text="详情点击" />
</Columns>
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:GDMSConnectionString %>"
SelectCommand="SELECT [NoticeNo], [NoticeTitle], [Date] FROM [notice] WHERE ([NoticeObject] = @NoticeObject)">
<SelectParameters>
<asp:Parameter DefaultValue="学生" Name="NoticeObject" Type="String" />
</SelectParameters>
</asp:SqlDataSource>
</asp:Content>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -