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 for Visual Studio 2015
This is the forum to discuss the Wrox book Beginning ASP.NET for Visual Studio 2015 by William Penberthy; ISBN: 978-1-119-07742-8
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET for Visual Studio 2015 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 April 19th, 2017, 03:15 PM
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: Apr 2017
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Web Forms with Master Page

In the end exercise of chapter 5, the book says to create a 'Web Form with Master Page'. When I do this the Master Page popup opens, but does not provide the files listed in the book (Site.Master and Site.Mobile.Master). Does anyone have any idea why this might happen? I am using Visual Studio 2015 Professional.

MattSA
Reply With Quote
  #2 (permalink)  
Old April 20th, 2017, 12:03 PM
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: Apr 2017
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I just created a new project to test whether my problem was occurring due to some file configuration error. However, I still could not create a Web Form with Master Page file. When the menu pops up after choosing the Web Form with Master Page template, none of the directories contain the appropriate files - the OK button is grayed out. Any suggestions would be appreciated.

MattSA
Reply With Quote
  #3 (permalink)  
Old April 20th, 2017, 02:02 PM
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: Apr 2017
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Smile

I added a Web Forms Master Page to the root project directory and then was able to add the appropriate Web Form with Master Page. It seems as if this site1.master file is not included in the scaffolding.

MattSA
Reply With Quote
  #4 (permalink)  
Old September 10th, 2017, 08:14 AM
Registered User
Points: 6, Level: 1
Points: 6, Level: 1 Points: 6, Level: 1 Points: 6, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2017
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy

Hi MattSA
Had exactly the same problem and solved it the same way.
The relevant text completely misses this aspect and I'm not impressed by the writing style and clarity.
Disappointing book!

PS:
Having added a Site.Master file to the root, the "TRY IT OUT" on page 152 doesn't work!
Clearly another omission on the part of the author!

What a shambles of a book! Very annoyed to have wasted my money on this rubbish!

Last edited by george77; September 10th, 2017 at 10:24 AM.
Reply With Quote
  #5 (permalink)  
Old January 9th, 2018, 03:12 PM
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: Jan 2018
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default trouble with site.master, Scripts.Render, webopt:bundlereference

Hi George,

some time ago ... did you give up "TRY IT OUT" with Master Page in Chap. 5?

I also managed to import a Site.master but there are 2 source lines which cause trouble:
<%: Scripts.Render("~/bundles/modernizr") %> "Srcipts" underlined red
<webopt:bundlereference runat="server" path="~/Content/css" /> "webopt" underlined green

Did you have the same problem, a solution perhaps?

Thanks for any reply,
Johann
Reply With Quote
  #6 (permalink)  
Old January 10th, 2018, 10:26 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: Jan 2018
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

for those who ground here while working on chapter 5 ....

For beginners it seems not so easy to add a MasterPage "manually" to the existing WROX-Projet because you may get trouble with the data-path like I described in my previous note.

Everything was okay after starting a new project with MasterPage from the very beginning. The TRY IT OUT is independend from the source edited in other chapters.

Johann
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
Expression web 4 / master page Jeff99 BOOK: Professional SharePoint 2010 Branding and User Interface Design 0 May 18th, 2011 02:16 PM
Can't see web part properties after applying a custom fixed width master page Dan.Hudson BOOK: Professional SharePoint 2010 Branding and User Interface Design 2 May 12th, 2011 02:58 PM
How to fill the IE's web page forms from VB? JohnThomas VB How-To 1 April 19th, 2009 06:53 AM
Master Page Control/Web.Sitemap Questions kwilliams ASP.NET 2.0 Professional 2 January 14th, 2007 08:32 PM
Web Parts in a Master Page melissa820 BOOK: Professional Web Parts and Custom Controls ASP.NET ISBN: 0-7645-7860-X 0 April 4th, 2006 03:03 PM



All times are GMT -4. The time now is 11:27 AM.


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