⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 shownews.aspx

📁 很好的毕业设计拿了可以直接用
💻 ASPX
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="showNews.aspx.cs" Inherits="showNews" %>

<%@ Register Src="mycontroler/foot.ascx" TagName="foot" TagPrefix="uc1" %>
<%@ Register Src="mycontroler/vote.ascx" TagName="vote" TagPrefix="uc2" %>
<%@ Register Src="mycontroler/head.ascx" TagName="head" TagPrefix="uc3" %>

<!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 runat="server">
    <title>新闻详细信息</title>
</head>
<body style="background-image: url(image/back.jpg)" scroll="yes">
    <form id="form1" runat="server">
    <div>
    <table width=100% border="0" style="background-color:  #999933;">
  <tr>
    <td style="background-image: url(image/head.png); width: 1051px; vertical-align: middle; height: 247px; text-align: center;"></td>
  </tr>
  <tr>
    <td height="48" style="width: 1051px">&nbsp;
        <uc3:head ID="Head1" runat="server" />
    </td>
  </tr>
  <tr>
    <td height="536" style="width: 100%; text-align: center;">
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:voteConnectionString2 %>"
            SelectCommand="SELECT * FROM [newNRB] WHERE ([id] = @id)">
            <SelectParameters>
                <asp:QueryStringParameter DefaultValue="0" Name="id" QueryStringField="id" Type="Int32" />
            </SelectParameters>
        </asp:SqlDataSource>
        <asp:DetailsView ID="DetailsView1" runat="server" AutoGenerateRows="False" DataKeyNames="id"
            DataSourceID="SqlDataSource1" Width="593px" BackColor="White" BorderColor="#3366CC" BorderStyle="None" BorderWidth="1px" CellPadding="4" Height="352px" OnLoad="DetailsView1_Load">
            <Fields>
                <asp:TemplateField>
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox1" runat="server" Text='<%# Eval("img") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <InsertItemTemplate>
                        <asp:TextBox ID="TextBox1" runat="server" Text='<%# Eval("img") %>'></asp:TextBox>
                    </InsertItemTemplate>
                    <ItemTemplate>
                        <asp:Image ID="Image1" runat="server" ImageUrl='<%# "image/new/"+Eval("img") %>' />
                    </ItemTemplate>
                    <FooterStyle HorizontalAlign="Center" />
                </asp:TemplateField>
                <asp:BoundField DataField="biaoti" HeaderText="标题" SortExpression="biaoti" ConvertEmptyStringToNull="False" >
                    <HeaderStyle HorizontalAlign="Right" />
                    <FooterStyle HorizontalAlign="Left" />
                </asp:BoundField>
                <asp:BoundField DataField="shijian" HeaderText="时间" SortExpression="shijian" >
                    <HeaderStyle HorizontalAlign="Right" />
                    <FooterStyle HorizontalAlign="Left" />
                </asp:BoundField>
                <asp:BoundField DataField="neirong" HeaderText="内容" SortExpression="neirong" >
                    <HeaderStyle HorizontalAlign="Right" />
                    <ControlStyle Width="100%" />
                    <FooterStyle HorizontalAlign="Left" />
                </asp:BoundField>
                <asp:BoundField DataField="click" SortExpression="click" HeaderText="点击率" >
                    <HeaderStyle HorizontalAlign="Right" />
                    <FooterStyle HorizontalAlign="Left" />
                </asp:BoundField>
            </Fields>
            <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
            <EditRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
            <RowStyle BackColor="White" ForeColor="#003399" />
            <PagerStyle BackColor="#99CCCC" ForeColor="#003399" HorizontalAlign="Left" />
            <HeaderStyle BackColor="#003399" Font-Bold="True" ForeColor="#CCCCFF" />
        </asp:DetailsView>
        <asp:Button ID="Button1" runat="server" ForeColor="Blue" PostBackUrl="~/news.aspx"
            Text="返回" Width="67px" />
        
        </td>
  </tr>
  <tr>
    <td height="78" style="width: 1051px; vertical-align: middle; text-align: center;">
        <uc1:foot ID="Foot1" runat="server" />
        &nbsp;
    </td>
  </tr>
</table>
    
    </div>
    </form>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -