ASP.NET 4 Unleashed
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. |