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 March 16th, 2012, 05:00 PM
Friend of Wrox
 
Join Date: May 2011
Posts: 411
Thanks: 13
Thanked 7 Times in 7 Posts
Default The Intellisense question.

In the following line of code on page 500 of your book:
Code:
<asp:BoundField DataField="Id" HeaderText="Id" ReadOnly="True" 
                SortExpression="Id" InsertVisible="False" />
The Visual Studio Intellisense for "InsertVisible" shows as "false" lower case. Does it make any difference here if the word "False/false" is in either upper or lower case? Which is correct, the VisualStudio intellisense lower case "false" or your books version of uppercase "False"? I have from time to time noticed some very minor discrepancies between the code in your book and the code intellisense code hints that VS studio says we should use when writing our code. This makes it kind of confusing as to which rule or rules to follow as far as syntax is concerned, especially when you consider the fact that C# compiler is much more syntax sensitive as opposed to the VB compiler.
 
Old March 17th, 2012, 04:05 PM
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,

In C# code, there's indeed a big difference between False and false. In Markup Code for controls, it doesn't matter. The parser that turns something like Visible="False" into something like .Visible = false; is case insensitive. So, in your case, it doesn't rerally matter how you write it.

And unfortunately it's not me who is inconsistent, but Visual Studio. Pretty much all code you see in the book has come from (and is tested in) Visual Studio.

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
enabling intellisense Edward Colins BOOK: Beginning SharePoint 2010 Development 0 October 23rd, 2010 03:10 PM
Intellisense don't work morteza ASP.NET 4 General Discussion 1 September 6th, 2010 03:52 AM
Skins and IntelliSense member4953 BOOK: Beginning ASP.NET 4 : in C# and VB 1 June 15th, 2010 11:49 AM
IntelliSense? electrum BOOK: Beginning Microsoft SQL Server 2008 Programming ISBN: 978-0-470-25701-2 0 March 17th, 2009 11:10 AM
Intellisense for UserControl RNedel ASP.NET 1.0 and 1.1 Basics 6 June 15th, 2004 04:47 AM





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