Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3
This is the forum to discuss the Wrox book Beginning ASP.NET 3.5: In C# and VB by Imar Spaanjaars; ISBN: 9780470187593
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 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 Search this Thread Display Modes
  #1 (permalink)  
Old July 31st, 2010, 01:48 PM
Authorized User
 
Join Date: Jul 2010
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default VWD 2010 Default.aspx

I have just begun using the book and downloaded the new VWD which is the 2010 version. This now supports web applications althought I have used web sites template as the book recommends.

VWD 2010 produces a detafault.aspx page significantly different from the 2008 version. It contains a complex looking header section with a functional log in and tabbed pages. This produces mark up slightly different to that in the book, although I have beed easily able to produce the web page. The problems seem to be with the Form tag not being visible. I would like to remove the auto generated headers so as to be consisten with the book.

Any ideas ?


Cheers
Reply With Quote
  #2 (permalink)  
Old August 1st, 2010, 04:28 AM
Imar's Avatar
Wrox Author
Points: 72,055, Level: 100
Points: 72,055, Level: 100 Points: 72,055, Level: 100 Points: 72,055, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,086
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Hi Harry,

Sounds like you chose the "ASP.NET Web Site" template; not the "ASP.NET Empty Web Site" template.

The first one has a default page based on a Master Page which indeed looks very different from the one I am showing in the book. Chapter 6 deals with Master Pages and shows you how to add one yourself. For now, it's important you start the site with the Empty web site template.

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!
Reply With Quote
  #3 (permalink)  
Old August 1st, 2010, 01:01 PM
Authorized User
 
Join Date: Jul 2010
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks Imar..Problem sorted.

The reason I chose ASP.NET Web Site is that this is specified and highlighted on section 4 page 6 of chapter 1. No reference is made to the "Empty" Web on this page? The 2010 is proving to be excellent in all other ways.

Thanks again.
Harry (actually Gerry)
Reply With Quote
  #4 (permalink)  
Old August 1st, 2010, 03:33 PM
Imar's Avatar
Wrox Author
Points: 72,055, Level: 100
Points: 72,055, Level: 100 Points: 72,055, Level: 100 Points: 72,055, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,086
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Hi Harry / Gerry,

You're correct. However, in Chapter 2, page 38, step 4 you find instructions to choose the Empty web site template. The site you create there is the basis for the entire Planet Wrox web site you work on throughout the book.

Page 36 describes the differences and similarities between the two site templates.

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!
Reply With Quote
  #5 (permalink)  
Old August 2nd, 2010, 06:03 AM
Authorized User
 
Join Date: Jul 2010
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks again Imar, things are becomming a little clearer, especially with the differences in 2008 to 2010. Mabe I havea different edition of the book because the stepts to create a new web in chapter 2 are on page 37 (not 38) and still make no reference to an empty web. Page 36 indeed explains the differences.

Also an added diffreence is that 2010 does not create the App data folder nor does it automatically create the Default.aspx page. I created these manually and transferred all the appropriate code sections and files to the new web. This worked fine and I am now in sync with the book.

Thanks again for your help, the book is excellent.
Regards
Gerry
Reply With Quote
  #6 (permalink)  
Old August 2nd, 2010, 06:07 AM
Imar's Avatar
Wrox Author
Points: 72,055, Level: 100
Points: 72,055, Level: 100 Points: 72,055, Level: 100 Points: 72,055, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,086
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Ah, I see now you're using the 3.5 book. The page references were to the 4.0 version.

Stuff like templates has changed between VS 2008 and VS 2010 so you'll see quite a bit of these type of changes. Microsoft cleaned up the standard templates and created some others that contain files to help you jump start your sites. Those were not available in VS 2008.

If you find you're having problems "converting" the instructions from the VS 2008 version of the book to VS 2010, you could install VWD 2008 Express side by side and use that instead. Once you get the hang of it, you could build your own sites in VS 2010.

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!
Reply With Quote
  #7 (permalink)  
Old August 2nd, 2010, 06:46 AM
Authorized User
 
Join Date: Jul 2010
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks once again Imar.

I hadnt realised there was a V4 book out but the differences are proving more beneficial than not because it forces attention to detail and builds experience of the environment, which is what I am seeking. I have lots of experience of IIS, VB and database programming but not in the .Net environment. For this reason I have chosen also to use C# in order to build skills in that area too.

look forward to continuing the excercises.

Gerry
Reply With Quote
  #8 (permalink)  
Old August 2nd, 2010, 10:25 AM
Imar's Avatar
Wrox Author
Points: 72,055, Level: 100
Points: 72,055, Level: 100 Points: 72,055, Level: 100 Points: 72,055, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,086
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Quote:
the differences are proving more beneficial than not because it forces attention to detail and builds experience of the environment, which is what I am seeking
I completely agree. Just be aware that there are differences, and you'll run into a few more of these problems. Please post them here if you run into them.

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!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
Windows 7 & VWD 2010 Saranjiv BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 4 July 13th, 2010 04:50 PM
Visual Studio 2010 in Focus at Great Indian Developer Summit 2010 shaguf5575 ASP.NET 1.x and 2.0 Application Design 0 February 24th, 2010 07:03 AM
Visual Studio 2010 in Focus at Great Indian Developer Summit 2010 shaguf5575 ASP.NET 1.x and 2.0 Application Design 0 February 24th, 2010 07:02 AM
Code for Chpt.2-Wrox File Share is missing Default.aspx and Default.aspx.vb bzoni BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 1 October 23rd, 2009 02:39 PM
default.aspx Louisa ASP.NET 1.0 and 1.1 Basics 4 October 14th, 2005 11:55 AM



All times are GMT -4. The time now is 03:24 PM.


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