simple java script in ASP.net page
aueddonline
Member Posts: 611 ■■□□□□□□□□
in Off-Topic
Just going through a tutorial at the moment for using java code within a htlm page, I have the code below but when I launch it in a browser I get an empty window? I seem to have the code correct after checking a few times with the book.
<%@ Page Language="C#" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script type=”text/javascript” language=”javascript”>
document.write(“I Love”);
document.write(“<br/>”);
document.write(“Visual Web Developer!”);
</script>
<script runat="server">
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
</div>
</form>
</body>
</html>
<%@ Page Language="C#" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script type=”text/javascript” language=”javascript”>
document.write(“I Love”);
document.write(“<br/>”);
document.write(“Visual Web Developer!”);
</script>
<script runat="server">
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
</div>
</form>
</body>
</html>
What's another word for Thesaurus?
Comments
-
aueddonline Member Posts: 611 ■■□□□□□□□□the problem was that I was copy and pasting the code, must have not liked some formatting I could see?What's another word for Thesaurus?