很郁闷的一个问题
我以前也遇到过
就是做母版页的时候 没问题
然后用新建窗体来选择母版页 总会出现很多问题
有点乱 对不起大家了!直接看重点吧!
今天的问题是
1.我NEW了一个WEB 选择母版页 然后点设计 什么都看不到
2.我运行新建的这个WEB页 可以看到 除了 图片以外的东西!
真的很郁闷!还希望大家帮下忙
这是母版页的代码
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %><!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>
<asp:ContentPlaceHolder id="head" runat="server">
</asp:ContentPlaceHolder>
<style type="text/css">
.style2
{
height: 78px;
}
.bluebg
{
background-color:#4876FF;
text-align:center;
width:1000px;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<div>
<table style="width: 1000px;">
<tr>
<td class="style2">
<img src="../picture/logo.gif" />
</td>
</tr>
<tr>
<td class="bluebg" style="color:White">
<asp:LinkButton ID="btnFirst" runat="server" ForeColor="White">首页</asp:LinkButton>
|
<asp:LinkButton ID="btnJsp" runat="server" ForeColor="White">JSP类</asp:LinkButton>
|
<asp:LinkButton ID="btnAsp" runat="server" ForeColor="White">ASP类</asp:LinkButton>
|
<asp:LinkButton ID="btnDotnet" runat="server" ForeColor="White">ASP.NET类</asp:LinkButton>
|
<asp:LinkButton ID="btnVb" runat="server" ForeColor="White">VB类</asp:LinkButton>
|
<asp:LinkButton ID="btnC" runat="server" ForeColor="White">C/C++类</asp:LinkButton>
|
<asp:LinkButton ID="btnDelphi" runat="server" ForeColor="White">Delphi类</asp:LinkButton>
|
<asp:LinkButton ID="btnJs" runat="server" ForeColor="White">Js类</asp:LinkButton>
|
<asp:LinkButton ID="btnDown" runat="server" ForeColor="White">软件下载</asp:LinkButton>
</td>
</tr>
<tr>
<td>
<asp:DropDownList ID="DropDownList1" runat="server">
<asp:ListItem>论文题目</asp:ListItem>
<asp:ListItem>开发语言</asp:ListItem>
</asp:DropDownList>
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<asp:Button ID="btnResearch" runat="server" Text="查找" />
<a href="http://sighttp.qq.com/cgi-bin/check?sigkey=12dcfc59f0291e09d17916adddddfb7f7999a2a32f76cc879e945d14a592df60"; target=_blank; onclick="var tempSrc='http://sighttp.qq.com/wpa.js?rantime='+Math.random()+'&sigkey=12dcfc59f0291e09d17916adddddfb7f7999a2a32f76cc879e945d14a592df60';var oldscript=document.getElementById('testJs');var newscript=document.createElement('script');newscript.setAttribute('type','text/javascript'); newscript.setAttribute('id', 'testJs');newscript.setAttribute('src',tempSrc);if(oldscript == null){document.body.appendChild(newscript);}else{oldscript.parentNode.replaceChild(newscript, oldscript);}return false;"> <img border="0" SRC='http://wpa.qq.com/pa?p=1:45789022:13' alt="点击这里给我发消息"></a>
<a href="http://sighttp.qq.com/cgi-bin/check?sigkey=12dcfc59f0291e09d17916adddddfb7f7999a2a32f76cc879e945d14a592df60"; target=_blank; onclick="var tempSrc='http://sighttp.qq.com/wpa.js?rantime='+Math.random()+'&sigkey=12dcfc59f0291e09d17916adddddfb7f7999a2a32f76cc879e945d14a592df60';var oldscript=document.getElementById('testJs');var newscript=document.createElement('script');newscript.setAttribute('type','text/javascript'); newscript.setAttribute('id', 'testJs');newscript.setAttribute('src',tempSrc);if(oldscript == null){document.body.appendChild(newscript);}else{oldscript.parentNode.replaceChild(newscript, oldscript);}return false;"> <img border="0" SRC='http://wpa.qq.com/pa?p=1:45789022:13' alt="点击这里给我发消息"></a></td>
</tr>
</table>
<asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server">
</asp:ContentPlaceHolder>
<table style="width:1000px">
<tr>
<td class="bluebg" style="width:100%;color:White; ">
<asp:LinkButton ID="btnContact" runat="server" ForeColor="White">联系我们</asp:LinkButton>
--<asp:LinkButton ID="btnZm" runat="server" ForeColor="White">责免声明</asp:LinkButton>
--<asp:LinkButton ID="btnHelp" runat="server" ForeColor="White">帮助声明</asp:LinkButton>
--<asp:LinkButton ID="btnAd" runat="server" ForeColor="White">广告声明</asp:LinkButton>
--<asp:LinkButton ID="btnAdvertise" runat="server" ForeColor="White">招聘精英</asp:LinkButton>
--<asp:LinkButton ID="btnAbout" runat="server" ForeColor="White">关于我们</asp:LinkButton>
</td>
</tr>
</table>
</div>
</form>
</body>
</html>
我以前也遇到过
就是做母版页的时候 没问题
然后用新建窗体来选择母版页 总会出现很多问题
有点乱 对不起大家了!直接看重点吧!
今天的问题是
1.我NEW了一个WEB 选择母版页 然后点设计 什么都看不到
2.我运行新建的这个WEB页 可以看到 除了 图片以外的东西!
真的很郁闷!还希望大家帮下忙
这是母版页的代码
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %><!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>
<asp:ContentPlaceHolder id="head" runat="server">
</asp:ContentPlaceHolder>
<style type="text/css">
.style2
{
height: 78px;
}
.bluebg
{
background-color:#4876FF;
text-align:center;
width:1000px;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<div>
<table style="width: 1000px;">
<tr>
<td class="style2">
<img src="../picture/logo.gif" />
</td>
</tr>
<tr>
<td class="bluebg" style="color:White">
<asp:LinkButton ID="btnFirst" runat="server" ForeColor="White">首页</asp:LinkButton>
|
<asp:LinkButton ID="btnJsp" runat="server" ForeColor="White">JSP类</asp:LinkButton>
|
<asp:LinkButton ID="btnAsp" runat="server" ForeColor="White">ASP类</asp:LinkButton>
|
<asp:LinkButton ID="btnDotnet" runat="server" ForeColor="White">ASP.NET类</asp:LinkButton>
|
<asp:LinkButton ID="btnVb" runat="server" ForeColor="White">VB类</asp:LinkButton>
|
<asp:LinkButton ID="btnC" runat="server" ForeColor="White">C/C++类</asp:LinkButton>
|
<asp:LinkButton ID="btnDelphi" runat="server" ForeColor="White">Delphi类</asp:LinkButton>
|
<asp:LinkButton ID="btnJs" runat="server" ForeColor="White">Js类</asp:LinkButton>
|
<asp:LinkButton ID="btnDown" runat="server" ForeColor="White">软件下载</asp:LinkButton>
</td>
</tr>
<tr>
<td>
<asp:DropDownList ID="DropDownList1" runat="server">
<asp:ListItem>论文题目</asp:ListItem>
<asp:ListItem>开发语言</asp:ListItem>
</asp:DropDownList>
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<asp:Button ID="btnResearch" runat="server" Text="查找" />
<a href="http://sighttp.qq.com/cgi-bin/check?sigkey=12dcfc59f0291e09d17916adddddfb7f7999a2a32f76cc879e945d14a592df60"; target=_blank; onclick="var tempSrc='http://sighttp.qq.com/wpa.js?rantime='+Math.random()+'&sigkey=12dcfc59f0291e09d17916adddddfb7f7999a2a32f76cc879e945d14a592df60';var oldscript=document.getElementById('testJs');var newscript=document.createElement('script');newscript.setAttribute('type','text/javascript'); newscript.setAttribute('id', 'testJs');newscript.setAttribute('src',tempSrc);if(oldscript == null){document.body.appendChild(newscript);}else{oldscript.parentNode.replaceChild(newscript, oldscript);}return false;"> <img border="0" SRC='http://wpa.qq.com/pa?p=1:45789022:13' alt="点击这里给我发消息"></a>
<a href="http://sighttp.qq.com/cgi-bin/check?sigkey=12dcfc59f0291e09d17916adddddfb7f7999a2a32f76cc879e945d14a592df60"; target=_blank; onclick="var tempSrc='http://sighttp.qq.com/wpa.js?rantime='+Math.random()+'&sigkey=12dcfc59f0291e09d17916adddddfb7f7999a2a32f76cc879e945d14a592df60';var oldscript=document.getElementById('testJs');var newscript=document.createElement('script');newscript.setAttribute('type','text/javascript'); newscript.setAttribute('id', 'testJs');newscript.setAttribute('src',tempSrc);if(oldscript == null){document.body.appendChild(newscript);}else{oldscript.parentNode.replaceChild(newscript, oldscript);}return false;"> <img border="0" SRC='http://wpa.qq.com/pa?p=1:45789022:13' alt="点击这里给我发消息"></a></td>
</tr>
</table>
<asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server">
</asp:ContentPlaceHolder>
<table style="width:1000px">
<tr>
<td class="bluebg" style="width:100%;color:White; ">
<asp:LinkButton ID="btnContact" runat="server" ForeColor="White">联系我们</asp:LinkButton>
--<asp:LinkButton ID="btnZm" runat="server" ForeColor="White">责免声明</asp:LinkButton>
--<asp:LinkButton ID="btnHelp" runat="server" ForeColor="White">帮助声明</asp:LinkButton>
--<asp:LinkButton ID="btnAd" runat="server" ForeColor="White">广告声明</asp:LinkButton>
--<asp:LinkButton ID="btnAdvertise" runat="server" ForeColor="White">招聘精英</asp:LinkButton>
--<asp:LinkButton ID="btnAbout" runat="server" ForeColor="White">关于我们</asp:LinkButton>
</td>
</tr>
</table>
</div>
</form>
</body>
</html>
解决方案 »
- .net “/”应用程序中的服务器错误
- 如何动态地为命令按钮添加“onclick”属性
- 超级简单的小问题
- 请问.net2.0的分页是否会默认添加limit语句?
- 下拉菜单的问题 ,相信很多人碰到过!
- ASP.NET 网站与discuz NT论坛注册,登录,注销整合
- VS中运行网页,会转到WebSite2/login.aspx?ReturnUrl=xx.aspx,怎样才能不这样啊
- 求一个简单正则表达式
- 一些网站在登录后,如果一段时间内未对此网站页面进行浏览的话,就会要求用户重新登录,请问这是怎么实现的啊?
- 服务器太忙,应用程序池应该怎么设置?例如 回收工作进程这个怎么设置?
- 分页打印
- 如果我在模板页上设置了背景图片的话,设计状态子页是可以看见背景的可是当运行的时候就看不到背景了,
我在说下我问题
我母版页现在可以显示
但是 !
我现在添一个 web页 使用这个模板
就会出现 在运行时候 不显示图片
而且 在新WEB页的 设计菜单种 一片空白
如果我把<img src="../picture/logo.gif" />
改成<img src="picture/logo.gif" /> 母版页变成X 但是 新的页 可以显示图片 设计栏还是一片白
更让我奇怪的是 以前好使的程序 也出现 设计栏一片白的情况
------------
<img src="/picture/logo.gif" />...改成类似这样...<asp:Image ID="xxx" runat="server" ImageUrl="~/picture/logo.gif" />...或者这样一定要记住,在母版页中不要使用相对路径,要用绝对路径...因为母版页中的路径实际上是最终内容页面的路径...
但是 无论这个方写什么 我新建的 WEB页面的 设计模式里 什么都不显示 我把图片扔了 也是一样 郁闷啊 !
我估计我重新弄个 能解决 但是总得知道为什么啊