Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning ASP.NET 4 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4: in C# and VB by Imar Spaanjaars; ISBN: 9780470502211
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4 : in C# and VB section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old June 21st, 2016, 10:28 PM
Registered User
Points: 8, Level: 1
Points: 8, Level: 1 Points: 8, Level: 1 Points: 8, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2016
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy First ASP.NET 4 Web Site

I cannot find the "ASP.NET Web Site" option when creating a "New Web Site...". I selected the "ASP.NET Web Site (Razor v3)" option, but the <%= DateTime.Now.ToString() %> line does not run, it just prints it on the screen.

Any suggestions would be appreciated.
Reply With Quote
  #2 (permalink)  
Old June 22nd, 2016, 09:05 AM
Imar's Avatar
Wrox Author
Points: 71,164, Level: 100
Points: 71,164, Level: 100 Points: 71,164, Level: 100 Points: 71,164, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 16,955
Thanks: 79
Thanked 1,556 Times in 1,533 Posts
Default

Which version of Visual Studio are you using? (Check Help | About Microsoft Visual Studio).

And are you sure you picked File | New Web site and not File | New Project?

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
Reply With Quote
  #3 (permalink)  
Old June 22nd, 2016, 09:15 AM
Registered User
Points: 8, Level: 1
Points: 8, Level: 1 Points: 8, Level: 1 Points: 8, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2016
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Microsoft Visual Studio Community 2015
Version 14.0.25123.00 Update 2

I also had the same problem on:

Microsoft Visual Studio Express 2015 for Web
Version 14.0.25123.00 Update 2

I did not choose the project. I did File | New Web site
Reply With Quote
  #4 (permalink)  
Old June 22nd, 2016, 09:41 AM
Imar's Avatar
Wrox Author
Points: 71,164, Level: 100
Points: 71,164, Level: 100 Points: 71,164, Level: 100 Points: 71,164, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 16,955
Thanks: 79
Thanked 1,556 Times in 1,533 Posts
Default

A lot has changed between .NET 4 in 2010 (which this book targets) and VS 2015. I think you either may want to get an updated version of this book (my 4.5.1 version targets 2013), or install VS 2010, or be prepared for *lots* of changes between the different versions of VS.

When I choose File | New Website in 2015, I see:

ASP.NET Empty Web Site
ASP.NET Web Forms Site
ASP.NET Web Site (Razor v3)

Depending on the exercise you're working on you need to choose the first (completely empty) or second (which already has a bunch of stuff in it).

Hope this helps,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to access the other site information in Asp.Net web site arunkongara ASP.NET 4 General Discussion 1 July 28th, 2011 11:16 AM
Chapter 1- Creating Your First ASP.NET 4 Web Site machinist BOOK: Beginning ASP.NET 4 : in C# and VB 4 June 1st, 2010 07:06 AM
ASP.NET web site which support any database sanjivbshinde ASP.NET 2.0 Professional 2 October 10th, 2008 01:46 AM
ERROR using ASP.net Web Site Administration Tool erictamlam C# 2005 0 April 3rd, 2007 02:28 AM
ASP.NET web site administration tool boksi ASP.NET 1.0 and 1.1 Basics 2 June 16th, 2005 08:10 AM



All times are GMT -4. The time now is 03:46 AM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.