Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I am currently using Microsoft Visual Studio.NET 2002 Academic Version. If I go to a language development IDE, i.e. VB.NET, and click on Help->About, it says that I am running the .NET Framework version 1.0. However, when I got to Control Panel-> Add Remove Programs, I have versions 1.0 and 2.0 of the .NET framework installed. Which one is being used?
I am asking this because I am working on an ASP.NET application right now. The server is running Windows 2000 with IIS, ASP.NET 2.0, and the server also has the .NET 2.0 Framework on it. My app is being written in VB.NET, and I need to set the focus of certain controls dynamically during runtime. None of my controls have a .SetFocus(), of .Focus() method. I did some internet searching and one particular page stated that in ASP.NET 2.0 this problem has been resolved and that every single input control now has a .SetFocus() method.
I am wondering since I do not have access to this method if I am not running the proper version of the Framework, or something else on either my client or my server.
Any suggestions?

The versioning between Visual Studio, ASP.NET and the .NET framework is a little nightmarish. Each version of VS.NET is only capable of building applications for one version of the .NET framework. 2002 uses v1.0, 2003 uses version 1.1, and 2005 uses v2.0.
The versions of ASP.NET correspond to the versions of the .NET framework - 1.0, 1.1, and 2.0.
Technically, you could compile your code using the command line with version 2.0 and then your SetFocus() method would work, but then you would be bypassing visual studio alltogether. Instead, you should probably upgrade VS or use one of the express editions.
Good luck,
-SN

SN,
Thank you very much for your quick reply. I believe a few months ago I downloaded Visual Web Development 2005 Express. I think that is where I got the 2.0 Framework from.
Is there a Visual Studio Express edition which would contain VB.NET, C#.NET, and ASP.NET? If so, could I use this IDE and compiler to open and work on my existing Visual Studio 2002 projects, and work on new ones?
Thanks in advance,
Matt

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |