Don t Use Set and Let When Working with Objects

Don't Use Set and Let When Working with Objects

In previous versions of ASP, you were required to use Set when assigning an object to a variable. For example, when creating an instance of the Connection object, you used the following statement:

 <% Set conPubs = Server.CreateObject( "ADODB.Connection" ) %> 

You no longer use the Set statement when creating ASP.NET pages with Visual Basic .NET. Instead, you can use a simple assignment:

 <% conPubs = Server.CreateObject( "ADODB.Connection" ) %> 

Furthermore, you can no longer use the Let statement.

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

Similar book on Amazon © 2008-2017.
If you may any questions please contact us: