No Nonindexed Default Properties


Visual Basic no longer supports nonindexed default properties. For example, in ASP Classic, you do not need to explicitly call the Value property of the RecordSet object. You can display the value of a RecordSet field like this:

 
 Response.Write( RS( "Title" ) ) 

In ASP.NET, however, you must always explicitly refer to a property. So, you need to rewrite the statement like this:

 
 Response.Write( RS( "Title" ).Value ) 


ASP.NET Unleashed
ASP.NET 4 Unleashed
ISBN: 0672331128
EAN: 2147483647
Year: 2003
Pages: 263

Similar book on Amazon

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net