 |
BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6
 | This is the forum to discuss the Wrox book ASP.NET 2.0 Instant Results by Imar Spaanjaars, Paul Wilton, Shawn Livermore; ISBN: 9780471749516 |
|
Welcome to the p2p.wrox.com Forums.
You are currently viewing the BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 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
|
|
|
|
|

November 6th, 2007, 04:48 AM
|
|
Authorized User
|
|
Join Date: Oct 2006
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Alternative to optional parameters in C#
Hi,
At many methods of this book there are optional parameters in VB code. In C# what should I do?
maybe provide an overload of the method with the extra parameter?
|
|

November 6th, 2007, 05:58 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Yes, that would be an option. Having two overloads that accept one and two parameters respectively for example is as having a single method with two parameters of which one is optional.
Imar
Cheers,
Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
|
|

November 6th, 2007, 06:35 AM
|
|
Authorized User
|
|
Join Date: Oct 2006
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Your chapters are simply the best. I haven't been able to locate any problem with them. You are the best.
In chapter 2 I can't understand why the author put those private fields
Private _id As Integer
Private _filename As String = String.Empty
Private _fromContactID As Integer
Private _toContactID As Integer
Private _message As String = String.Empty
Private _datesent As DateTime
In both of the Resource and the EmailContent business classes. it means nothing
Where is the exception handling code? i don't know
i can't wait for your next book but please provide us with C# version too and please write it alone
|
|

November 8th, 2007, 11:24 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Usually these kind of fields are used as backing variables. Maybe there are properties that use them (I don't have code here so I can't look).
Working on a new book, although it's not like Instant Results. It's called Beginning ASP.NET 3.5 with VB and C# and, as its title implies, features code in VB and C#.
Cheers,
Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
|
|

November 12th, 2007, 02:00 AM
|
|
Authorized User
|
|
Join Date: Oct 2006
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
No properties for those classes. Nice but i have to ask you
would it be useful for me after reading instant results?
|
|

November 12th, 2007, 03:47 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
It depends; it's aimed at beginning programmers. However, there's a lot of new stuff in .NET 3.5 and Visual Studio 2008 (LINQ, CSS designers, JavaScript debugging, new ASP.NET controls and more) so I am sure you'll find lots of new things in the book.
Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
|
|
 |