I got the the Hello World section of chapter 2, and typed this into a new web site:
Code:
<div>
<h1>Hello World</h1>
<p>Welcome to Beginning ASP.NET 3.5 on <%= DateTime.Now.ToString() %></p>
<div>
CTRL-F5 opens IE with a blank page (URL=about.blank). If I close the browser, the browser reopens with the code as you see it above except with a space between each line (URL=http://localhost:3570/WebSite1/Default.aspx). If I right-click default.aspx and choose Firefox, Internet Explorer, or Internal Browser it also displays the source code as you see it above. In either case, the first time I run it after a reboot, a small window comes up showing:
ASP.NET Development Server
http://localhost:3570/WebSite1
I viewed the source in IE and it showed this:
Code:
<!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><title>
Untitled Page
</title></head>
<body>
<p>
<div></p>
<p>
<h1>Hello World</h1></p>
<p>
<p>Welcome to Beginning ASP.NET 3.5 on <%= DateTime.Now.ToString() %></p></p>
<p>
<div></p>
</body>
</html>
This happens if I'm running it from an administrator or non-administrator account, running Visual Studio 2008 Professional or Visual Web Developer 2008 Express.
Any ideas?