.NET framework install

  • Thread starter Thread starter ucasesoftware
  • Start date Start date
U

ucasesoftware

hi

is it possible to know with a asp.net script if the visitor have .net
framework install in his computer?

thx
 
Not reliably. You can chaeck the HTTP_USER_AGENT server variable, but that
will only work on IE.

You'll get something like:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR 1.1.4322)

There isn't a good cross-browser solution as far as i know, short of using
like an applet or something *shrug*.

Karl
 
As Karl indicated.... but more over, Why?
Are you trying to run an app off the client or are you just trying to check
to tell them to install it for another reason?
 
no they have to dw my software but it's very big with the dotnetfr.exe,
languagpack.... (97 Mo with Msde)

so if i was sure they have the .NET framework install my software is
only 15 Mp
 
The .Net Framework *requires* IE 5.01, or later, for its installation.
It's one of its *system requirements*.

See http://msdn.microsoft.com/netframework/technologyinfo/sysreqs/default.aspx

It's quite easy to detect whether the .Net Framework is installed or not,
and which version is installed, if you're running IE 5.01 or later.

There's code to do it here :

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetdep/html/useragent.asp

Since only IE inserts the CLR version in its userAgent, and other browsers don't,
this method will only work for IE browsers.



Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top