Wrox Programmer Forums
|
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 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 May 1st, 2012, 08:23 AM
Registered User
 
Join Date: May 2012
Posts: 8
Thanks: 1
Thanked 0 Times in 0 Posts
Smile Chapter 6 - skins demo

Hello,

After making the skins page I try to create a skinsdemo page based on the mybase template.

However in the skins file I get the following error:

http://i.imgur.com/0Xq1k.png

and when I drag a button in the content area of the skinsdemo page I get a lot more errors.

Any idea on how to fix this?

Thanks,
 
Old May 1st, 2012, 08:33 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,

When you link Skin Files to the User Control editor, you may get errors and warnings that don't affect the web site. To see if this is the case, close all open documents, restart VWD and then choose Website | Build website (or press Ctrl+Shift+B).

This should get rid of the errors. If not, you may have a problem in another, unrelated file.

Cheers,

Imar

P.S. Leuk boek? ;-)
__________________
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 May 1st, 2012, 10:21 AM
Registered User
 
Join Date: May 2012
Posts: 8
Thanks: 1
Thanked 0 Times in 0 Posts
Default

I tried the building but when I then try to view the page in the browser I still get the errors.

And yes, leuk boek :)
 
Old May 1st, 2012, 10:35 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Which error(s) do you get in the browser? Can you post a sample?

Also, if possible, can you make your site in a ZIP available somewhere? E.g. in a DropBox account or something like that? Then I can take a look....

Goed om te horen dat je het een leuk boek vindt. Laten we de rest in het Engels houden dan snapt de rest er ook nog wat van ;-)

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 May 1st, 2012, 10:55 AM
Registered User
 
Join Date: May 2012
Posts: 8
Thanks: 1
Thanked 0 Times in 0 Posts
Default

After building when I try the view in browser for the file Skinsdemo.aspx I get that there were build errors and then the following shows up in the error list:

[img]http://i.imgur.com/nRzLn.png/img]

So I can't actually get that file to load.

Site code uploaded here:
http://www.2shared.com/file/q_B0xWGf/Site.html

Thanks,
 
Old May 1st, 2012, 10:58 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Can you zip it as a non-self extracting ZIP file? E.g. a regular ZIP file, and upload it again?

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 May 1st, 2012, 11:15 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

The Inherits attribute of the SkinsDemo page is incorrect. It reads as:

Code:
 
Inherits="SkinsDemo"
but it should be

Code:
 
Inherits="Demos_SkinsDemo"
Once I changed that, all the errors went away....

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!
The Following User Says Thank You to Imar For This Useful Post:
Zadda (May 1st, 2012)
 
Old May 1st, 2012, 11:35 AM
Registered User
 
Join Date: May 2012
Posts: 8
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Ah ok, thanks for the help!





Similar Threads
Thread Thread Starter Forum Replies Last Post
Skins pennkaiser BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 1 August 4th, 2010 02:07 PM
Chapter 4, demo.controls benjii82 BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 1 October 26th, 2009 03:20 PM
Chapter 6; Skins CssClass jtruffa BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 11 May 4th, 2009 03:30 PM
ch6 Skins and Named Skins wingri BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 3 April 8th, 2008 02:57 AM
Chapter 8, Meno Demo sjar BOOK: Beginning Visual Basic 2005 ISBN: 978-0-7645-7401-6 4 June 20th, 2006 10:01 AM





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