当前位置:编程学习 > C#/ASP.NET >>

用asp做的网上购物系统的一些代码在vs2008里怎么弄?

     以下代码是管理员界面的代码:怎么没有错误在vs2008里就是不能运行呢?



      <%@ Page Language="C#" AutoEventWireup="true" CodeFile="AdminIndex.aspx.cs" Inherits="AdminManage_AdminIndex" %>
<!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>
<style type="text/css">
body {
background-color: #FDF1BE;
}

</style>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
    <form id="form1" runat="server">
    <table width="801" height="632" border="0" align="center" cellpadding="0" cellspacing="0" id="__01">
<tr>
<td colspan="2">
<img src="images/AdminIndex_01.gif" width="788" height="19" alt=""></td>
<td width="12" rowspan="3">
<img src="images/AdminIndex_02.gif" width="12" height="183" alt=""></td>
<td width="1">
<img src="images/分隔符.gif" width="1" height="19" alt=""></td>
</tr>
<tr>
<td colspan="2">
<img src="images/AdminIndex_03.gif" width="788" height="59" alt=""></td>
<td>
<img src="images/分隔符.gif" width="1" height="59" alt=""></td>
</tr>
<tr>
<td colspan="2">
<img src="images/AdminIndex_04.gif" width="788" height="105" alt=""></td>
<td>
<img src="images/分隔符.gif" width="1" height="105" alt=""></td>
</tr>
<tr>
<td width="227">
<img src="images/AdminIndex_05.gif" width="227" height="32" alt=""></td>
<td width="565" rowspan="8"><table width="548" height="371" border="1" align="center" cellpadding="2" cellspacing="2" bordercolor="#FFFFFF" bgcolor="#C6AA34">
          <tr>
            <td height="369" bgcolor="#FFFFFF"><table width="515" height="339" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td bgcolor="FFFDF3"> <iframe id="leftframe" url="F:/netshopping/GoodsManage.aspx" name="leftframe" style="text-align: center; border-right: #f0f5d5 2px solid; border-top: #f0f5d5 2px solid; border-left: #f0f5d5 2px solid; border-bottom: #f0f5d5 2px solid;" frameborder="0" scrolling=no width="515" height="339"></iframe>
                </td>
              </tr>
            </table></td>
          </tr>
        </table></td>
<td rowspan="8">
<img src="images/AdminIndex_07.gif" width="12" height="417" alt=""></td>
<td>
<img src="images/分隔符.gif" width="1" height="32" alt=""></td>
</tr>
<tr>
<td>
            <asp:HyperLink ID="hlinkGManage" runat="server" Font-Underline="False" ForeColor="Black"
                ImageUrl="images/AdminIndex_08.gif" NavigateUrl="F:/netshopping/GoodsManage.aspx"
                Target="leftframe"></asp:HyperLink></td>
<td>
<img src="images/分隔符.gif" width="1" height="42" alt=""></td>
</tr>
<tr>
<td>
            <asp:HyperLink ID="hlinkMManage" runat="server" Font-Underline="False" ForeColor="Black"
                ImageUrl="images/AdminIndex_09.gif" NavigateUrl="F:/netshopping/MManage.aspx"
                Target="leftframe">会员管理</asp:HyperLink></td>
<td>
<img src="images/分隔符.gif" width="1" height="43" alt=""></td>
</tr>
<tr>
<td>
            <asp:HyperLink ID="hlinkSManage" runat="server" Font-Underline="False" ForeColor="Black"
                ImageUrl="images/AdminIndex_10.gif" NavigateUrl="F:/netshopping/StoreManage.aspx"
                Target="leftframe">仓库管理</asp:HyperLink></td>
<td>
<img src="images/分隔符.gif" width="1" height="41" alt=""></td>
</tr>
<tr>
<td>
            <asp:HyperLink ID="hlinkOManage" runat="server" Font-Underline="False" ForeColor="Black"
                ImageUrl="images/AdminIndex_11.gif" NavigateUrl="F:/netshopping/OrderManage.aspx"
                Target="leftframe">订单管理</asp:HyperLink></td>
<td>
<img src="images/分隔符.gif" width="1" height="41" alt=""></td>
</tr>
<tr>
<td>
            <asp:HyperLink ID="hlinkAManage" runat="server" Font-Underline="False" ForeColor="Black"
                ImageUrl="images/AdminIndex_12.gif" NavigateUrl="F:/netshopping/AdminManage.aspx"
                Target="leftframe">后台管理</asp:HyperLink></td>
<td>
<img src="images/分隔符.gif" width="1" height="43" alt=""></td>
</tr>
<tr>
<td>
            <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="images/AdminIndex_13.gif"
                OnClick="ImageButton1_Click" /></td>
<td>
<img src="images/分隔符.gif" width="1" height="41" alt=""></td>
</tr>
<tr>
<td rowspan="2">
<img src="images/AdminIndex_14.gif" width="227" height="166" alt=""></td>
<td>
<img src="images/分隔符.gif" width="1" height="134" alt=""></td>
</tr>
<tr>
<td colspan="2">
<img src="images/AdminIndex_15.gif" width="573" height="32" alt=""></td>
<td>
<img src="images/分隔符.gif" width="1" height="32" alt=""></td>
</tr>
</table>
    </form>
</body>
</html>
--------------------编程问答-------------------- 需要吧asp改为asp.net --------------------编程问答-------------------- vs 貌似不支持原生.asp文件。。。 --------------------编程问答-------------------- .asp是发布后的,当然不能直接用了,你可以重新新建一个.aspx文件,然后将你上面的代码中的:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AdminIndex.aspx.cs" Inherits="AdminManage_AdminIndex" %>
这句代码删掉,然后将其他的代码贴到你新建aspx文件中第一行的下面,就ok了。。。 --------------------编程问答-------------------- 3楼正解。但是对于楼主,这个页面一点使用价值也没有的。
补充:.NET技术 ,  .NET技术前瞻
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,