VS2017

本文介绍了MyPetShop这个基于ASP.NET的Web应用程序,它展示了三层架构的使用,包括前台商品浏览、用户管理、购物车和后台管理等功能模块。页面布局采用HTML和CSS,链接按钮使用ASP.NET控件实现,同时涉及网页头部和底部的设计以及导航栏的样式调整。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

好久都没有写文章了,今天的代码是在实验课上面敲的

 

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="1.aspx.vb" Inherits="_1" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">

<head runat="server">

<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

    <title></title>

    <meta name="keywords" content="MyPetShop, XHTML5"/>

</head>

<body>

    <header>

        <img alt="MyPetShop" src="../Image/logo.gif" />

        </header>

    <aside>

        <nav style="background-color: #C0C0C0">

            <a href="HTML5.html">介绍</ a><br />

            <a href="HTML5.html">数据库设计</ a>

            </nav>

        </aside>

    <section>

        <h3>MyPetShop</h3>

         <article>

             MyPetShop是本书提供的一个web应用程序,用来展示基于ASP.NET三层架构的web应用程序开发技术

             </ article>

            <article>

                <h4>功能模块</h4>

                MyPetShop包括前台商品浏览、用户管理、购物车、订单结算、后台管理等模块。

                </ /article>

        </ section>

    <footer style="background-color:#C0C0C0">Copyright2018MyPetShop</ /footer>

    <style type="text/css">

        aside{float:left;width:15%}

        section{float:right;width:85%}

        footer{clear:both;}

        </style>

             <form id="form1" runat="server">

        <div>

        </div>

    </form>

</body>

</html>

 

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="TableLayout.aspx.vb" Inherits="TableLayout" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">

<head runat="server">

<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

    <title></title>

    <style type="text/css">

        .auto-style1 {

            width: 100%;

        }

        .auto-style2 {

            height: 20px;

        }

        .auto-style3 {

            height: 20px;

            width: 66px;

        }

    </style>

</head>

<body>

    <form id="form1" runat="server">

        <div>

        </div>

        <table class="auto-style1">

            <tr>

                <td rowspan="2">&nbsp;</td>

                <td id="lnkbtnDefault" class="auto-style3">

                    <asp:LinkButton ID="LinkButton2" runat="server">首页</asp:LinkButton>

                </td>

                <td class="auto-style2">

                    <asp:LinkButton ID="LinkButton3" runat="server">注册</asp:LinkButton>

                </td>

                <td class="auto-style2">

                    <asp:LinkButton ID="LinkButton1" runat="server">登录</asp:LinkButton>

                </td>

                <td class="auto-style2">

                    <asp:LinkButton ID="LinkButton4" runat="server">购物车</asp:LinkButton>

                </td>

                <td class="auto-style2">

                    <asp:LinkButton ID="LinkButton5" runat="server">网站地图</asp:LinkButton>

                </td>

            </tr>

            <tr>

                <td class="auto-style2" colspan="5">登录状态</td>

            </tr>

            <tr>

                <td colspan="6">您的位置:</td>

            </tr>

        </table>

    </form>

</body>

</html>

 

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="TableLayout.aspx.vb" Inherits="TableLayout" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">

<head runat="server">

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

    <title></title>

    <style type="text/css">

        .auto-style1 {

            width: 100%;

        }

        .auto-style2 {

            height: 20px;

        }

        .auto-style3 {

            height: 20px;

            width: 66px;

        }

    </style>

    <style>

        a {

            text-decoration: none;

        }

    </style>

</head>

<body style="background-color: #616378; font-size: 12px; text-align: center; margin: 0px">

    <form id="form1" runat="server">

        <div>

        </div>

        <table class="auto-style1" style="background-color: #fff; margin: 0px; height: 86px; text-align: left; width: 778px; padding: 4px 2px 2px 10px">

            <tr>

                <td class="auto-style3" rowspan="2">&nbsp;</td>

                <td id="lnkbtnDefault" class="auto-style3" style="background-color: #8c8ea3; text-align: center; width: 96.4px">

                    <asp:LinkButton ID="LinkButton2" runat="server" ForeColor="White">首页</asp:LinkButton>

                </td>

                <td class="auto-style2">

                    <asp:LinkButton ID="LinkButton3" runat="server" ForeColor="White">注册</asp:LinkButton>

                </td>

                <td class="auto-style2">

                    <asp:LinkButton ID="LinkButton1" runat="server" ForeColor="White">登录</asp:LinkButton>

                </td>

                <td class="auto-style2">

                    <asp:LinkButton ID="LinkButton4" runat="server" ForeColor="White">购物车</asp:LinkButton>

                </td>

                <td class="auto-style2">

                    <asp:LinkButton ID="LinkButton5" runat="server" ForeColor="White">网站地图</asp:LinkButton>

                </td>

            </tr>

            <tr>

                <td class="auto-style2" colspan="5" style="background-color: #666688; color: #fff">登录状态</td>

            </tr>

            <tr>

                <td colspan="6" style="background-color: #ccccd4; margin: 0px; padding-left: 6px; text-align: left; width: 778px">您的位置:</td>

            </tr>

        </table>

    </form>

</body>

</html>

 

a {

    text-decoration: none;

}

body {

    background-color: #616378;

    font-size: 12px;

    margin: 0px;

    text-align:center;

}

table {background-color:#fff:height:86px;magin:0 auto;

       padding:4px 2px 2px 10px;text-align:left;width:778px;

}

.navigation {

background-color:#8c8ea3;text-align:center;width:96.4px;}

.status {

background-color:#666688;color:#fff;}

.position {

background-color:#ccccd4;margin:0 auto;padding-left:6px;text-align:left;width:778px;}

 

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="TableLayout.aspx.vb" Inherits="TableLayout" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">

<head runat="server">

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

    <title></title>

    <style type="text/css">

        .auto-style1 {

            width: 100%;

        }

        .auto-style2 {

            height: 20px;

        }

        .auto-style3 {

            height: 20px;

            width: 66px;

        }

    </style>

    <style>

        a {

            text-decoration: none;

        }

    </style>

    <link href="../Styles/Table.css" rel="stylesheet" type="text/css" />

</head>

<body style="background-color: #616378; font-size: 12px; text-align: center; margin: 0px">

    <form id="form1" runat="server">

        <div>

        </div>

        <table class="auto-style1" style="background-color: #fff; margin: 0px; height: 86px; text-align: left; width: 778px; padding: 4px 2px 2px 10px">

            <tr>

                <td class="navigation" rowspan="2">&nbsp;</td>

                <td id="lnkbtnDefault" class="navigation" style="background-color: #8c8ea3; text-align: center; width: 96.4px">

                    <asp:LinkButton ID="LinkButton2" runat="server" ForeColor="White">首页</asp:LinkButton>

                </td>

                <td class="navigation">

                    <asp:LinkButton ID="LinkButton3" runat="server" ForeColor="White">注册</asp:LinkButton>

                </td>

                <td class="navigation">

                    <asp:LinkButton ID="LinkButton1" runat="server" ForeColor="White">登录</asp:LinkButton>

                </td>

                <td class="navigation">

                    <asp:LinkButton ID="LinkButton4" runat="server" ForeColor="White">购物车</asp:LinkButton>

                </td>

                <td class="navigation">

                    <asp:LinkButton ID="LinkButton5" runat="server" ForeColor="White">网站地图</asp:LinkButton>

                </td>

            </tr>

            <tr>

                <td class="navigation" colspan="5" style="background-color: #666688; color: #fff">登录状态</td>

            </tr>

            <tr>

                <td colspan="6" style="background-color: #ccccd4; margin: 0px; padding-left: 6px; text-align: left; width: 778px" class="navigation">您的位置:</td>

            </tr>

        </table>

    </form>

</body>

</html>

 

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="CloseWindow.aspx.vb" Inherits="Ex2_CloseWindow" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">

<head runat="server">

<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

    <title></title>

</head>

<body>

    <form id="form1" runat="server">

        <div>

            <a href="/" onclick="javascript:window.close();return false;">关闭</a>

            <asp:Button ID="btnClose" runat="server" OnClientClick="&quot;javascript:window.close();return false;&quot;" Text="Button" />

        </div>

    </form>

</body>

</html>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值