Hello, from my research i noticed that i have something wrong with my masterpage, because when i try to do something like:
Response.Write("<script language=Javascript>alert('Elr')</script>")
It highlight the code and when i do a rollover the text diaplays:
"Path file\Ciudad.aspx": ASP.Net runtime error: Only Content Controls are allowed directly in a Content Page that contains content controls.
This is the masterpage code:
<%@ Master Language="VB" %>
<script runat="server">
</script>
<html xmlns=" >
<head runat="server">
<link href="StyleSheet.css" rel="Stylesheet" type="text/css" />
<title>Untitled Page</title>
</head>
<body class="twoColFixLtHdr">
<div id="container">
<div id="header">
<h1>
<img src="Images/Titlebar.png" /></h1>
</div>
<div id="sidebar1">
<p>
<img src="Images/Sidebar.png" style="position: relative" /> </p>
<p> </p>
<p> </p>
<p> </p>
<!-- end #sidebar1 -->
</div>
<form id="form1" runat="server">
<div id="mainContent">
<asp:ContentPlaceHolder ID="ContentPlaceHolder2" runat="server">
<h1> </h1>
<!-- end #mainContent -->
</asp:ContentPlaceHolder></div>
</form>
<!-- This clearing element should immediately follow the #mainContent div in order to force the #container div to contain all child floats --><br class="clearfloat" />
<div id="footer">
<img src="Images/Footer.png" />
<!-- end #footer --></div>
<!-- end #container --></div>
</body>
</html>
How can I solve this? Thx
Response.Write("<script language=Javascript>alert('Elr')</script>")
It highlight the code and when i do a rollover the text diaplays:
"Path file\Ciudad.aspx": ASP.Net runtime error: Only Content Controls are allowed directly in a Content Page that contains content controls.
This is the masterpage code:
<%@ Master Language="VB" %>
<script runat="server">
</script>
<html xmlns=" >
<head runat="server">
<link href="StyleSheet.css" rel="Stylesheet" type="text/css" />
<title>Untitled Page</title>
</head>
<body class="twoColFixLtHdr">
<div id="container">
<div id="header">
<h1>
<img src="Images/Titlebar.png" /></h1>
</div>
<div id="sidebar1">
<p>
<img src="Images/Sidebar.png" style="position: relative" /> </p>
<p> </p>
<p> </p>
<p> </p>
<!-- end #sidebar1 -->
</div>
<form id="form1" runat="server">
<div id="mainContent">
<asp:ContentPlaceHolder ID="ContentPlaceHolder2" runat="server">
<h1> </h1>
<!-- end #mainContent -->
</asp:ContentPlaceHolder></div>
</form>
<!-- This clearing element should immediately follow the #mainContent div in order to force the #container div to contain all child floats --><br class="clearfloat" />
<div id="footer">
<img src="Images/Footer.png" />
<!-- end #footer --></div>
<!-- end #container --></div>
</body>
</html>
How can I solve this? Thx