Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 4.5 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4.5: in C# and VB by Imar Spaanjaars; ISBN: 978-1-118-31180-6
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4.5 : in C# and VB section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 8th, 2014, 02:20 AM
Registered User
 
Join Date: Jan 2014
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default chapter 4 page 115

hi,

After creating the ControlDemo.aspx in the demo folder.

and added the .TextBox in the stylesheet on p.115
Set the server control textbox cssClass property to TextBox

and I don't see the changes after running it.

I had to move the ControlDemo.aspx out of the Demo folder to the root, run it, and it works.

So how do I get it to work if the web pages are in folders?
 
Old January 8th, 2014, 06:06 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

Could this be a cache issue? This should work, regardless of where the file is placed. Try reloading the page using Ctrl+F5 or Ctrl+R. And where did you place the CSS?

Cheers,

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!
 
Old January 8th, 2014, 10:45 PM
Registered User
 
Join Date: Jan 2014
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Imar,

tried clearing cache, I run it in latest IE 11 and firefox 26.

the CSS file is located just as the book under Styles\Styles.css

This statement was added <link href="Styles/Styles.css" rel="stylesheet" type="text/css" /> in the ControlDemo.aspx the same way it is in the default.aspx file, in the head tag.

I tried again and again, and can't figured out why it doesn't work within the Dems folder and only on the root.
 
Old January 9th, 2014, 12:31 AM
Registered User
 
Join Date: Jan 2014
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Imar,

figured it out...

added "../" to the CSS link

<link href="../Styles/Styles.css" rel="stylesheet" type="text/css" />






Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 8 Ajax.ActionLink, at page 197. PartialView displayed as its own page. JimiFriis BOOK: Professional ASP.NET MVC 4 1 March 25th, 2015 04:18 AM
Function Similarity (Ch. 4, p.114-115) caljay BOOK: Beginning PHP 6, Apache, MySQL 6 Web Development ISBN: 9780470391143 1 August 17th, 2011 10:37 PM
Chapter 4 - Page 114-115 ERROR learner800 BOOK: Beginning PHP 6, Apache, MySQL 6 Web Development ISBN: 9780470391143 0 February 19th, 2011 02:01 PM
Answer to the nightmare on pages 114, 115, 116, mobyme BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 1 April 23rd, 2007 07:53 PM
Chapter 4 pg. 114-115 mjc2928 BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 4 August 25th, 2004 07:09 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.