Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > Other ASP.NET > BOOK: Beginning ASP.NET Web Pages with WebMatrix
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning ASP.NET Web Pages with WebMatrix
This is the forum to discuss the Wrox book Beginning ASP.NET Web Pages with WebMatrix by Mike Brind, Imar Spaanjaars ; ISBN: 978-1-1180-5048-4
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET Web Pages with WebMatrix 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 December 22nd, 2015, 06:11 PM
Registered User
Points: 5, Level: 1
Points: 5, Level: 1 Points: 5, Level: 1 Points: 5, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2015
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default My Browser dont show the Code result made in Webmatrix.

Hi,
I AM using the latest WebMatrix version (just installed it) and Windows 10


I tried this Code from the book :

@{ †††

} †

<!DOCTYPE html> †

<html lang="en"> †††

†† <head>

††††††† <meta charset="utf-8" />

††††††† <title></title> †††

†† </head> †††

†† <body>

††††† <h1>Welcome to WebMatrix</h1>

†††††††† <p>I began to become a web developer on @DateTime.Now.ToString()</p>† †††

††† </body>

†††† </html>

When pressing F12 or run in order to see the result in a browser nothing happened. But I just found out that right-clicking on the Page.cshtml file in the left pane choosing "Launch in browser" resulted in this (expected) result in the browser:

Welcome to WebMatrix

I began to become a web developer on 22-12-2015 20:35:42 †

I Wonder why this not could be done just by pressing F12 or clicking Run in the Ribbon menu?? (as written in the book about WebMatrix I am reading trying to learn the stuff about WebMatrix and ASP.NET)

Best Regards Lars
Reply With Quote
  #2 (permalink)  
Old January 10th, 2016, 11:27 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: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 16,948
Thanks: 79
Thanked 1,555 Times in 1,532 Posts
Default

Hi Lars,

That's odd indeed. Did you have the file open when you tried it?

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 May 30th, 2016, 09:32 AM
Registered User
Points: 17, Level: 1
Points: 17, Level: 1 Points: 17, Level: 1 Points: 17, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2012
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Incorrect Directions in Book

When coding the first example in this book it didn't work for me. But I did get it to work by using a bit different way than what the book suggests.

After you install Web Matrix, when creating the first site be sure to create a new site from a template gallery. I picked Empty Site under the Templates area. This takes care of any IIS quirks starting with a usual website you might find.

After the website is created, I deleted the deafult CSHTML file. From here, I followed the directions in the book. Whenever you click "run" it appears that the WebMatrix software does not load the web page you are working on, it loads the root file which is either Default.cshtml or index.cshtml
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
values dont show up on ASP page but exist in DB msoul Classic ASP Basics 2 September 3rd, 2008 02:03 PM
Document design mode image dont show in IE7 h2c357 Javascript 0 May 3rd, 2007 09:21 AM
Very beginner - Result didn't show in the browser not24 ASP.NET 1.0 and 1.1 Basics 7 February 22nd, 2005 11:08 AM
Show result from query akibaMaila VB.NET 2002/2003 Basics 2 January 18th, 2005 11:43 AM
Opera Browser bad display of web page made with Dr karib Dreamweaver (all versions) 15 July 11th, 2004 05:18 AM



All times are GMT -4. The time now is 01:53 PM.


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