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

📄 default.aspx

📁 包含了几个由sql server2005开发的典型程序
💻 ASPX
字号:

<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>

<%@ Register Src="Userlogin.ascx" TagName="Userlogin" TagPrefix="uc2" %>

<%@ Register Src="head.ascx" TagName="head" TagPrefix="uc1" %>

<!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>
    <link href="StyleSheet.css" rel="stylesheet" type="text/css" />
</head>
<body style="text-align: center; background-color: #edeeef;">
    <form id="form1" runat="server">
    <div>
        <uc1:head ID="Head1" runat="server" OnLoad="Head1_Load" />
      
        <table border="0" cellpadding="0" cellspacing="0" style="width: 740px; height: 239px">
            <tr>
                <td style="width: 740px; background-color: #ffffff; height: 447px;" valign="top" align="left">
                    <table border="0" cellpadding="0" cellspacing="0" style="width: 740px; height: 200px">
                        <tr>
                            <td style="width: 370px; height: 192px;" align="left" valign="middle">
                            <table border="0" cellpadding="0" cellspacing="1" style="width: 365px; height: 150px; border-right: 1px solid; border-top: 1px solid; border-left: 1px solid; border-bottom: 1px solid; background-color: #3381da;">
                                <tr>
                                    <td style="width: 365px; height: 19px; background-color: #ffffff; background-image: url(image/t_bg01.gif);">
                                        <span lang="EN-US" style="color: #ffffff; font-family: 宋体;">&nbsp;::企业新闻 &nbsp; &nbsp;
                                            &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                                            &nbsp;</span></td>
                                </tr>
                                <tr>
                                    <td style="width: 365px; height: 151px; background-color: #ffffff;" align="center" valign="middle">
                                      <asp:GridView ID="GridView1" runat="server" Height="121px" PageSize="6" ShowHeader="False"
                                            Width="336px" GridLines="None" AutoGenerateColumns="False">
                                            <Columns>
                                                <asp:HyperLinkField DataNavigateUrlFields="流水号" DataNavigateUrlFormatString="shownew.aspx?id={0}"
                                                    DataTextField="新闻标题" DataTextFormatString="&#183;{0}">
                                                    <ItemStyle Font-Overline="False" HorizontalAlign="Left" />
                                                </asp:HyperLinkField>
                                                <asp:BoundField DataField="添加时间" />
                                            </Columns>
                                        </asp:GridView>
                                        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                                        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<asp:HyperLink ID="HyperLink4" runat="server" NavigateUrl="shownews.aspx?id=企业新闻">More>></asp:HyperLink></td>
                                </tr>
                            </table>
                                </td>
                            <td style="width: 370px; height: 192px;" align="right"><table border="0" cellpadding="0" cellspacing="1" style="width: 365px; height: 150px; border-right: 1px solid; border-top: 1px solid; border-left: 1px solid; border-bottom: 1px solid; background-color: #3381da;">
                                <tr>
                                    <td style="width: 365px; height: 19px; background-color: #ffffff; background-image: url(image/t_bg01.gif);" align="left">
                                        <span style="color: #ffffff">&nbsp;::行业新闻 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                                            &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span></td>
                                </tr>
                                <tr>
                                    <td style="width: 365px; height: 151px; background-color: #ffffff;" align="center" valign="middle"><asp:GridView ID="GridView2" runat="server" Height="121px" PageSize="6" ShowHeader="False"
                                            Width="340px" GridLines="None" AutoGenerateColumns="False">
                                        <Columns>
                                            <asp:HyperLinkField DataNavigateUrlFields="流水号" DataNavigateUrlFormatString="shownew.aspx?id={0}"
                                                    DataTextField="新闻标题" DataTextFormatString="&#183;{0}">
                                                <ItemStyle Font-Overline="False" HorizontalAlign="Left" />
                                            </asp:HyperLinkField>
                                            <asp:BoundField DataField="添加时间" />
                                        </Columns>
                                    </asp:GridView>
                                        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                                        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;<asp:HyperLink ID="HyperLink5" runat="server" NavigateUrl="shownews.aspx?id=业内新闻">More>></asp:HyperLink></td>
                                </tr>
                            </table>
                            </td>
                        </tr>
                    </table>
                    <table>
                        <tr>
                            <td style="width: 540px" valign="top">
                    <table border="0" cellpadding="0" cellspacing="1" style="width: 540px; height: 252px; border-right: 1px solid; border-top: 1px solid; border-left: 1px solid; border-bottom: 1px solid; background-color: #3381da;">
                        <tr>
                            <td style="width: 540px; height: 19px; background-color: #ffffff; font-size: 9pt; background-image: url(image/t_bg01.gif);" align="left">
                                &nbsp;<span style="color: #ffffff">::</span><span style="color: #ffffff">企业产品 &nbsp;
                                    &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                                    &nbsp; &nbsp;</span></td>
                        </tr>
                        <tr>
                            <td style="width: 540px; height: 233px; background-color: #ffffff;">
                                <asp:DataList ID="DataList1" runat="server" Height="200px" RepeatColumns="2" RepeatDirection="Horizontal"
                                    Width="532px">
                                    <ItemTemplate>
                                        <table border="0" cellpadding="0" cellspacing="0" >
                                            <tr>
                                                <td align="center" rowspan="2" valign="middle" >
                                                    <a href='showpro.aspx?id=<%# DataBinder.Eval(Container.DataItem, "流水号")%> '>
                                                        <img height="60" src='image/<%# DataBinder.Eval(Container.DataItem, "产品图片")%>'
                                                            width="100" style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none" alt="a" /></a></td>
                                                <td valign="middle" style="width: 150px; height: 22px;" align="left">
                                                    <img height="15" src="image/dot_1.gif" style="width: 25px" alt="d" /><a href='showpro.aspx?id=<%# DataBinder.Eval(Container.DataItem, "流水号")%> '><strong><%# DataBinder.Eval(Container.DataItem, "产品名称")%></strong></a></td>
                                            </tr>
                                            <tr>
                                                <td style="width: 150px; height: 53px" align="left">
                                                    <img height="11" src="image/dot_1.gif" width="24" alt="b" />价格: ¥<%# DataBinder.Eval(Container.DataItem, "产品价格")%>
                                                    元<br />
                                                    <br />
                                                    <img height="11" src="image/dot_1.gif" width="24" alt="c" />类别: <a href='showpros.aspx?id=<%# DataBinder.Eval(Container.DataItem, "产品类别")%>'>
                                                        <%# DataBinder.Eval(Container.DataItem, "产品类别")%>
                                                    </a>
                                                </td>
                                            </tr>
                                        </table>
                                    </ItemTemplate>
                                </asp:DataList>
                                &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:HyperLink ID="HyperLink2" runat="server" NavigateUrl="showpros.aspx?id=%" CssClass="linka">More>></asp:HyperLink></td>
                        </tr>
                    </table>
                            </td>
                            <td style="width: 200px" valign="top">
                                <uc2:Userlogin ID="Userlogin1" runat="server" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
        <br />
    </div>
    </form>
</body>
</html>

⌨️ 快捷键说明

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