Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
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
  #1 (permalink)  
Old July 29th, 2010, 08:41 PM
Registered User
 
Join Date: Jul 2010
Posts: 15
Thanks: 6
Thanked 0 Times in 0 Posts
Default Minor error

On pages 50 and 52 under tryouts part of the VB code is shown as
Code:
DateTime.Now.ToString()
.
It should be
Code:
DateAndTime.Now.ToString()
. Please correct me if I am wrong.
  #2 (permalink)  
Old July 30th, 2010, 02:18 AM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Quote:
Please correct me if I am wrong.
I will, as you are.... ;-)

DateTime is the correct data type and is defined as System.DateTime. As such, it's available in VB and C#. DateAndTime is VB only.

Maybe your Intelli Sense list shows the Common tab and not the All tab? DateTime appears on the All tab for me. (Take a look at the bottom of the IntelliSense list for the two tabs). Otherwise, just complete the text as shown in the book and you'll see it compiles.

I sent you a similar message (with a screenshot) as a response to the error you submitted to Wrox support as well.

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:
pennkaiser (August 4th, 2010)
  #3 (permalink)  
Old August 2nd, 2010, 09:00 AM
Registered User
 
Join Date: Aug 2010
Posts: 2
Thanks: 0
Thanked 1 Time in 1 Post
Default about minor error

hello,
If you are getting the problem to getting some data then please recheck the data which are you providing are correct.....

______________________________
"Want to get-on Google's first page and loads of traffic to your website?
Hire a SEO Specialist from Ocean Groups seo specialist
"
The Following User Says Thank You to johnmicheal1190 For This Useful Post:
pennkaiser (August 4th, 2010)
  #4 (permalink)  
Old August 4th, 2010, 11:42 AM
Registered User
 
Join Date: Jul 2010
Posts: 15
Thanks: 6
Thanked 0 Times in 0 Posts
Default Another Question:Chapter 6:Please clarify

Hello,
I typed in the code as given so that the user may choose "Monochrome" or "DarkGrey". My question is this: What should the value of the pages theme be in the <pages></pages> element in the the web.config file between the <system.web> and </system.web> tags. Should it be <pages theme ="Monochrome"></pages> or <pages theme ="DarkGrey"></pages>. I have the DropDownList Box as recommened and the code thereafter in order to make it functional based on the SelectedIndexChanged event.

The specific try out that is not working is that on page 231.(Applying the User-selected Theme) Despite having everything in from Pages 226 to 232 as instructed in the book,whenever I select either "Monochrome" or "DarkGrey" all I can see is the "DarkGrey" theme.

I removed the styleSheet theme from the <pages> element (as recommended on Page 231 - last paragraph) and also have "AutoPostBack" for the Drop-down list set to TRUE.

Can anyone please help me see where I am going wrong. What is confsuing me is what value for "theme" should I have in the web.config file in the <pages> element?
  #5 (permalink)  
Old August 4th, 2010, 12:52 PM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Cross post: Please clarify this in Chapter 6 (pages 226-232)

It's a bit confusing if you cross-post; especially when you post in a forum for two different versions of the book.

Which one are you using?

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!
  #6 (permalink)  
Old August 4th, 2010, 01:21 PM
Registered User
 
Join Date: Jul 2010
Posts: 15
Thanks: 6
Thanked 0 Times in 0 Posts
Default Clarification

Hello
Thanks for your reply.

The pages I am referring to appear in the book "Beginning ASP.NET 4 in C# and VB." This is the paperback vesion by John Wiley. The cover shows a guitar. I hope this helps. I think I have also started a new thread for it today to avoid confusion with this previous "Minor error" topic which has been addressed.

To be more specific the Chapter is named 'Create Consistent Looking WebSites" and the sub-sections being referred to are "Dynamically Switching Themes".
The Try-Outs are called 'Letting the User Select a Theme" which is working fine for me. What is not working is "Applying the User-Selected Theme" as I have described in the previous reply as well as in the new thread that I just started.

Thanks once again,
  #7 (permalink)  
Old August 4th, 2010, 02:02 PM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Quote:
I think I have also started a new thread for it today to avoid confusion with this previous "Minor error" topic which has been addressed.
Adding confusion while you tried to avoid it, as you posted in the forum for the 3.5 version of the book... ;-)

So, 4.0 it is. Did you find the DateTime stuff in the IntelliSense list?

I posted an answer to your other post in the 3.5 forum. For future posts, please make sure you choose the correct forum.

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!
  #8 (permalink)  
Old August 4th, 2010, 02:29 PM
Registered User
 
Join Date: Jul 2010
Posts: 15
Thanks: 6
Thanked 0 Times in 0 Posts
Default Will be careful about the version

Hello Imar,
Thanks for the reply and sorry for the confusion. I have read previous replies. I may have continued to post un-aware that there was a version 3.5 also out there. I will make sure that I post for v4 from this point.
  #9 (permalink)  
Old August 4th, 2010, 02:37 PM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

No problem...

Quote:
Did you find the DateTime stuff in the IntelliSense list?
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!


Similar Threads
Thread Thread Starter Forum Replies Last Post
Minor error in common.php? Dave521r BOOK: PHP and MySQL: Create-Modify-Reuse ISBN: 978-0-470-19242-9 1 April 2nd, 2009 12:35 PM
Some minor inconsistencies rchrd@sun.com BOOK: Professional C++ 1 February 27th, 2009 08:40 PM
app.minor Ardvisoor ASP.NET 2.0 Professional 0 June 1st, 2006 02:23 AM
Minor textual error chapter 12 bottom of page 406 haguna BOOK: Professional VB 2005 ISBN: 0-7645-7536-8 0 April 16th, 2006 05:48 PM





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