📄 noticedetail.aspx
字号:
<%@ Page Language="VB" MasterPageFile="~/student/studentMasterPage.master" AutoEventWireup="false" CodeFile="NoticeDetail.aspx.vb" Inherits="student_NoticeDetail" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<asp:FormView ID="FormView1" runat="server" DataSourceID="SqlDataSource1" Style="position: relative">
<EditItemTemplate>
Date:
<asp:TextBox ID="DateTextBox" runat="server" Text='<%# Bind("Date") %>'>
</asp:TextBox><br />
NoticeTitle:
<asp:TextBox ID="NoticeTitleTextBox" runat="server" Text='<%# Bind("NoticeTitle") %>'>
</asp:TextBox><br />
NoticeContent:
<asp:TextBox ID="NoticeContentTextBox" runat="server" Text='<%# Bind("NoticeContent") %>'>
</asp:TextBox><br />
<asp:LinkButton ID="UpdateButton" runat="server" CausesValidation="True" CommandName="Update"
Text="更新">
</asp:LinkButton>
<asp:LinkButton ID="UpdateCancelButton" runat="server" CausesValidation="False" CommandName="Cancel"
Text="取消">
</asp:LinkButton>
</EditItemTemplate>
<InsertItemTemplate>
Date:
<asp:TextBox ID="DateTextBox" runat="server" Text='<%# Bind("Date") %>'>
</asp:TextBox><br />
NoticeTitle:
<asp:TextBox ID="NoticeTitleTextBox" runat="server" Text='<%# Bind("NoticeTitle") %>'>
</asp:TextBox><br />
NoticeContent:
<asp:TextBox ID="NoticeContentTextBox" runat="server" Text='<%# Bind("NoticeContent") %>'>
</asp:TextBox><br />
<asp:LinkButton ID="InsertButton" runat="server" CausesValidation="True" CommandName="Insert"
Text="插入">
</asp:LinkButton>
<asp:LinkButton ID="InsertCancelButton" runat="server" CausesValidation="False" CommandName="Cancel"
Text="取消">
</asp:LinkButton>
</InsertItemTemplate>
<ItemTemplate>
<table style="width: 100%; height: 100%" align="center">
<tr>
<td style="width: 100%">
<asp:Label ID="DateLabel" runat="server" Text='<%# Bind("Date") %>'></asp:Label></td>
</tr>
<tr>
<td style="width: 100%" align="center">
<asp:Label ID="NoticeTitleLabel" runat="server" Text='<%# Bind("NoticeTitle") %>'>
</asp:Label></td>
</tr>
<tr>
<td style="width: 100%" align="left">
<asp:Label ID="NoticeContentLabel" runat="server" Text=' <%# Bind("NoticeContent") %>' Height="80px" Width="529px"></asp:Label></td>
</tr>
</table>
<br />
</ItemTemplate>
</asp:FormView>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:GDMSConnectionString %>"
SelectCommand="SELECT [Date], [NoticeTitle], [NoticeContent] FROM [notice] WHERE ([NoticeNo] = @NoticeNo)">
<SelectParameters>
<asp:QueryStringParameter Name="NoticeNo" QueryStringField="id" Type="String" />
</SelectParameters>
</asp:SqlDataSource>
</asp:Content>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -