473,396 Members | 2,018 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Let and Set not supported under aspx

I have an ASP website that I am converting to aspx. I am getting an error
message telling me that the "let and set commands are no longer supported".
Apparently this is new to aspx. How do I fix these commands under .net?
Aug 30 '06 #1
3 1941
"AbraAbraCadabra" <nw*@gsw-inc.comwrote in message
news:%2******************@TK2MSFTNGP04.phx.gbl...
>I have an ASP website that I am converting to aspx. I am getting an error
message telling me that the "let and set commands are no longer supported".
Correct.
Apparently this is new to aspx.
Yes indeed - first released in 2002...

How do I fix these commands under .net?

Object variables are assigned just like primitive variables...

DataSet objDS = null;
objDS = ...

No need for Let or Set anymore
Aug 30 '06 #2
From:
http://www.vbdotnetheaven.com/Code/Jun2003/2035.asp
'VB.NET: Property
'Author: ra******@msn.com
Imports System

Class MyClass
Private x As Integer

Public Property X() As Integer
Get
Return x
End Get
Set
x = value
End Set
End Property
End Class '[MyClass]

Class MyClient

Public Shared Sub Main()
Dim mc As New MyClass()
mc.X = 10
Dim xVal As Integer = mc.X
Console.WriteLine(xVal) 'Displays 10
End Sub 'Main
End Class 'MyClient
Aug 30 '06 #3
PLease review this document :

http://msdn.microsoft.com/library/de...agechanges.asp

That's not the only difference.
You might as well learn what the other differences are.


Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"AbraAbraCadabra" <nw*@gsw-inc.comwrote in message
news:%2******************@TK2MSFTNGP04.phx.gbl...
>I have an ASP website that I am converting to aspx. I am getting an error message telling me that
the "let and set commands are no longer supported". Apparently this is new to aspx. How do I fix
these commands under .net?

Aug 30 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: eadams | last post by:
I've been tasked with writing an application in VB.Net that will manipulate messages in a user's Inbox. My Exchange admin prefers that I use MAPI; I don't really care, but I want this to be as...
1
by: Tomas Vera | last post by:
Hello All, In an effort to prepare my WebApp for localization, I have included the following lines in some of my ASPX pages (the "lab mice" of my web app). --- Code snippet -----...
1
by: Brian | last post by:
How you you change the supported runtimes for projects with 2005 Beta? I've tried: 1. select project in solution explorer. 2. project > properties Now I get a view of a new folder with this...
2
by: draganc | last post by:
Hello, I just want to test my application, and I want to upload it to www.brinkster.com server, but free host version does not support code behind pages. Can Visual Studio make both the code...
2
by: John Cantley | last post by:
What does this mean, have been doing services and windows apps for awhile now, don't remember doing anything special to get them to work tried <script runat="server"> or whatever it was string...
1
by: Optimize ASP.Net | last post by:
Hi, We are in process of developing an application which would contain thousands of pages using Visual Studio .Net 2003, So I would like to ask that 1. How many files are supported in asp.net...
1
by: VB Programmer | last post by:
On this line of code: objStreamReader = File.OpenText(FILENAME) I get this error: URI formats are not supported. Description: An unhandled exception occurred during the execution of the...
6
by: Aaron Bertrand [SQL Server MVP] | last post by:
Based on a couple of recent discussions I've had on this topic, I posted a brief article last night: "How long will classic ASP be supported?" http://www.aspfaq.com/2545 Please let me know...
4
by: J055 | last post by:
Hi I get the error: System.InvalidOperationException: The ReadElementContentAsString method is not supported on node type None. Line 267, position 12. when running the following code: ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.