Computing.Net > Forums > Programming > ASP.NET 2.0 / VB.NET SetFocus()

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

ASP.NET 2.0 / VB.NET SetFocus()

Reply to Message Icon

Name: SmittyZ3M
Date: August 2, 2006 at 12:38:28 Pacific
OS: WinXP Home
CPU/Ram: 1.6GHz / 768MB
Comment:

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?



Sponsored Link
Ads by Google

Response Number 1
Name: SN
Date: August 2, 2006 at 13:31:26 Pacific
Reply:

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


0

Response Number 2
Name: SmittyZ3M
Date: August 2, 2006 at 14:26:22 Pacific
Reply:

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


0

Response Number 3
Name: bakss
Date: August 14, 2006 at 19:19:35 Pacific
Reply:

I had more bugs with this situation.
I have deleted framework 1.1 and installed new framework


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

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


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: ASP.NET 2.0 / VB.NET SetFocus()

MAster Pages in ASp.Net 2.0 www.computing.net/answers/programming/master-pages-in-aspnet-20/16271.html

asp.net 2.0: class file and .aspx page concep www.computing.net/answers/programming/aspnet-20-class-file-and-aspx-page-concep/19753.html

ASP.net DataGrid Display!!! www.computing.net/answers/programming/aspnet-datagrid-display/12448.html