我用visual studio 2008 的table、MultiView 和 View 控件,编写了一个登陆页面,图片的路径也对,就是无法显示图片???请问哪里出了问题?    这是我写的码:<%@ Page Language="C#" AutoEventWireup="true"  CodeBehind="Logon.aspx.cs" Inherits="net_spj.Logon" %><!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="css/Common.css" rel="Stylesheet" type="text/css" />
</head>
<body class="body">
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <div class="top">
            </div>
            <center>
                <div class="view">
                    <asp:MultiView ID="LoginMultiView" runat="server" ActiveViewIndex="0">
                        <asp:View ID="LoginView" runat="server">
                            <table cellpadding="0" cellspacing="0" style="border: 1px solid #FFFFFF; width: 100%;">
                                <tr>
                                    <td colspan="8">
                                        <img alt="" src="images/Webinfo/login_1.jpg" style="border:1px solid #FFFFFF; width:671px; height:503px;"  />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:DropDownList ID="IdentityDropDownList" runat="server" Style="font-size: small"
                                            Width="74px">
                                            <asp:ListItem>学生</asp:ListItem>
                                            <asp:ListItem>考务人员</asp:ListItem>
                                        </asp:DropDownList>
                                    </td>
                                    <td>
                                        <img alt="" src="images/webinfo/login_name.jpg" style="width: 71px; height: 24px" />
                                    </td>
                                    <td>
                                        <asp:TextBox ID="TxtName" runat="server" Width="101px"></asp:TextBox>
                                    </td>
                                    <td>
                                        <img src="images/webinfo/login_pwd.jpg" style="width: 49px; height: 24px" />
                                    </td>
                                    <td>
                                        <asp:TextBox ID="TxtPwd" runat="server" Width="100px" TextMode="Password"></asp:TextBox>
                                    </td>
                                    <td class="loginImgBtn">
                                        <asp:ImageButton ID="BtnLogin" runat="server" ImageUrl="images/webinfo/login_login.jpg"
                                            OnClick="BtnLogin_Click" />
                                    </td>
                                    <td class="loginImgBtn">
                                        <a href="Register.aspx">
                                            <asp:Image ID="Image1" runat="server" ImageUrl="images/webinfo/login_stureg.jpg" /></a>
                                    </td>
                                    <td class="Validator">
                                        <asp:RequiredFieldValidator ID="NameValidator" runat="server" ControlToValidate="TxtName"
                                            Display="Dynamic" ErrorMessage="*姓名"></asp:RequiredFieldValidator>
                                        <asp:RequiredFieldValidator ID="PwdValidator" runat="server" ControlToValidate="TxtPwd"
                                            Display="Dynamic" ErrorMessage="*密码"></asp:RequiredFieldValidator>
                                        <asp:Label ID="LabResult" runat="server" Style="color: #FF0000"></asp:Label>
                                    </td>
                                </tr>
                            </table>
                        </asp:View>
                        <asp:View ID="ChosepageView" runat="server">
                            <div class="loginChoseView">
                                <a href="ExaminationMan/Default.aspx">
                                    <img class="choseImg" alt="" src="images/webinfo/examinationman_index_top.jpg" />
                                </a><a href="SiteMan/Default.aspx">
                                    <img class="choseImg" alt="" src="images/webinfo/webman_index_top.jpg" />
                                </a>
                            </div>
                        </asp:View>
                    </asp:MultiView>
                </div>
            </center>
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>
这是图片无法显示的效果
其他图片请到我的相册下载:

解决方案 »

  1.   

        其他图片的地址:http://hi.csdn.net/space-9970503-do-album-id-92015.html  ,请在这里下载使用
      

  2.   

      <img class="choseImg" ruant="server" alt="" src="~images/webinfo/examinationman_index_top.jpg" />
      

  3.   

    还得说明下:我定义了一个MultiView,和两个view,根据    <asp:MultiView ID="LoginMultiView" runat="server" ActiveViewIndex="0">的 ActiveViewIndex="0"定义,所以只能显示第一个view的图片,对第二个view的内容操作是无用的,我要的效果也就是能把第一个view的图片显示就行。楼上的朋友,先谢谢你对我提的问题的回复。但是你的这个方法,图片还是无法显示,还有没有别的方法?谢谢
      

  4.   

    ~/images/忘了一个/
     <img alt="" ruant="server" src="~/images/Webinfo/login_1.jpg" style="border:1px solid #FFFFFF; width:671px; height:503px;"  />这样看能显示不
      

  5.   

    有两种可能:
    1.images文件夹未授权给aspnet或network service
    2.网站未启用父路径
      

  6.   

    子夜,你说的那个方法还是不行。楼上的朋友说的:“images文件夹未授权给aspnet或network service”,可能行,这位朋友,能说的详细些吗?