 |
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
|
|
|
|
|

July 29th, 2010, 08:41 PM
|
|
Registered User
|
|
Join Date: Jul 2010
Posts: 15
Thanks: 6
Thanked 0 Times in 0 Posts
|
|
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.

|
|

July 30th, 2010, 02:18 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
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
|
|
The Following User Says Thank You to Imar For This Useful Post:
|
|
|

August 2nd, 2010, 09:00 AM
|
|
Registered User
|
|
Join Date: Aug 2010
Posts: 2
Thanks: 0
Thanked 1 Time in 1 Post
|
|
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:
|
|
|

August 4th, 2010, 11:42 AM
|
|
Registered User
|
|
Join Date: Jul 2010
Posts: 15
Thanks: 6
Thanked 0 Times in 0 Posts
|
|
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?
|
|

August 4th, 2010, 12:52 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
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
|
|

August 4th, 2010, 01:21 PM
|
|
Registered User
|
|
Join Date: Jul 2010
Posts: 15
Thanks: 6
Thanked 0 Times in 0 Posts
|
|
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,
|
|

August 4th, 2010, 02:02 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
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
|
|

August 4th, 2010, 02:29 PM
|
|
Registered User
|
|
Join Date: Jul 2010
Posts: 15
Thanks: 6
Thanked 0 Times in 0 Posts
|
|
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.
|
|

August 4th, 2010, 02:37 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
No problem...
Quote:
|
Did you find the DateTime stuff in the IntelliSense list?
|
Cheers,
Imar
|
|
 |
|