Default.aspx

(开头部分) 3KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" Title="无标题页" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .style4
    {
        width: 100%;
            height: 79px;
        }
    .style5
    {
        width: 46px;
    }
</style>
    </asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

    <table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td bgcolor="#FF0000"  height="20"><span class="STYLE1">热点促销</span></td>
    <td width="16%" rowspan="2"><img src="image/TEL.gif" width="179" height="105" /></td>
  </tr>
  <tr>
    <td>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:UserConnectionString3 %>" 
            SelectCommand="SELECT top 8 *  FROM [News] ORDER BY [NewsCount] DESC">
        </asp:SqlDataSource>
        <asp:DataList ID="DataList1" runat="server" DataSourceID="SqlDataSource1" 
            Height="17px" Width="391px">
            <ItemTemplate>
                <asp:HyperLink ID="HyperLink1" runat="server" 
                    NavigateUrl='<%# Eval("NewsId","~/news/show.aspx?Id={0}") %>' 
                    Text='<%# Eval("NewsTitle").ToString().Length > 10 ? Eval("NewsTitle").ToString().Substring(0,10)+"..." : Eval("NewsTitle").ToString() %>'></asp:HyperLink>
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
                <asp:Label ID="Label1" runat="server" Text='<%# Eval("AddedTime","{0:d}") %>'></asp:Label>
            </ItemTemplate>
        </asp:DataList>
        <br />
      </td>
  </tr>
</table>

    <table border="0" cellpadding="0" cellspacing="0" width="100%">
        <tr>
            <td bgcolor="#FF0000" height="20" valign="middle">
                <span class="STYLE1">产品展示</span></td>
        </tr>
        <tr>
            <td>
                <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:UserConnectionString3 %>" 
                    SelectCommand="SELECT top 9  * FROM [Product] ORDER BY [TypeId] DESC">
                </asp:SqlDataSource>
                <asp:DataList ID="DataList2" runat="server" DataSourceID="SqlDataSource2" 
                    RepeatColumns="3" RepeatDirection="Horizontal" Height="16px" Width="369px">
                    <ItemTemplate>
                    <a href="product/show.aspx?ProId=<%#Eval("ProductId") %>">
                        <table class="style4">
                            <tr>
后面还有 24 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。