我用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>
这是图片无法显示的效果
其他图片请到我的相册下载:
<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>
这是图片无法显示的效果
其他图片请到我的相册下载:
解决方案 »
- Remoting这个技术是啥时候出的?为啥<<c#入门经典>>,<<c#高级编程>>里都没提到?
- 框架外的一个页面,想在保存数据后,刷新框架内的right页面?
- 分页的时候可能会有另外的人把你结果中的数据删除?用什么方法最好?
- 高分求三层加储存过程Asp.net分页代码
- 关于泛型的疑问
- 如果判断路径中有没有某个图片存在?
- Ajax 报错:Two components with the same id
- 面试题
- 如何实现CSDN左边树的隐藏显示功能?
- 关于htmlinputfile控件上传失败的问题,请大哥们指教.......
- ASP.NET怎么实现中英文版本切换,我是放在资源文件里,怎么根据中英文加载对应的中英文资源文件
- UPDATEPANEL
<img alt="" ruant="server" src="~/images/Webinfo/login_1.jpg" style="border:1px solid #FFFFFF; width:671px; height:503px;" />这样看能显示不
1.images文件夹未授权给aspnet或network service
2.网站未启用父路径