PC Review


Reply
Thread Tools Rate Thread

Detecting .NET CLR from IE?

 
 
Asaf
Guest
Posts: n/a
 
      8th Mar 2008
Hello,

I would like to detect .NET CLR on user computer to notice him if he will
need to install .NET 3.5 runtime from IE.

I have tried to detect using the code
"Request.Browser.ClrVersion.ToString()" but result version is "2.0.50727" and
I have installed .NET version 3.5 on my machine.

Does IE can’t recognize if a .NET 3.5 is installed?

Thanks for any advice,
Asaf

 
Reply With Quote
 
 
 
 
Mark Rae [MVP]
Guest
Posts: n/a
 
      8th Mar 2008
"Asaf" <(E-Mail Removed)> wrote in message
news:0831FBAD-4B18-4848-99A7-(E-Mail Removed)...

> I would like to detect .NET CLR on user computer to notice him if he will
> need to install .NET 3.5 runtime from IE.


You're confusing the CLR with the Framework - they aren't the same thing...

> I have tried to detect using the code
> "Request.Browser.ClrVersion.ToString()" but result version is "2.0.50727"
> and
> I have installed .NET version 3.5 on my machine.


Yes, that would be correct...

> Does IE can’t recognize if a .NET 3.5 is installed?


Yes it does - use Request.UserAgent


--
Mark Rae
ASP.NET MVP
http://www.markrae.net

 
Reply With Quote
 
Asaf
Guest
Posts: n/a
 
      8th Mar 2008
Hello Mark,

Thanks for your answer.

I have tried using Request.UserAgent but result is:

Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET
CLR 2.0.50727)

..NET 3.5 is installed on my machine but UserAgent does not display it.

Asaf

"Mark Rae [MVP]" wrote:

> "Asaf" <(E-Mail Removed)> wrote in message
> news:0831FBAD-4B18-4848-99A7-(E-Mail Removed)...
>
> > I would like to detect .NET CLR on user computer to notice him if he will
> > need to install .NET 3.5 runtime from IE.

>
> You're confusing the CLR with the Framework - they aren't the same thing...
>
> > I have tried to detect using the code
> > "Request.Browser.ClrVersion.ToString()" but result version is "2.0.50727"
> > and
> > I have installed .NET version 3.5 on my machine.

>
> Yes, that would be correct...
>
> > Does IE can’t recognize if a .NET 3.5 is installed?

>
> Yes it does - use Request.UserAgent
>
>
> --
> Mark Rae
> ASP.NET MVP
> http://www.markrae.net
>
>

 
Reply With Quote
 
Asaf
Guest
Posts: n/a
 
      8th Mar 2008
Hi Mark,

Sorry my mistake, it does working

Asaf

"Mark Rae [MVP]" wrote:

> "Asaf" <(E-Mail Removed)> wrote in message
> news:0831FBAD-4B18-4848-99A7-(E-Mail Removed)...
>
> > I would like to detect .NET CLR on user computer to notice him if he will
> > need to install .NET 3.5 runtime from IE.

>
> You're confusing the CLR with the Framework - they aren't the same thing...
>
> > I have tried to detect using the code
> > "Request.Browser.ClrVersion.ToString()" but result version is "2.0.50727"
> > and
> > I have installed .NET version 3.5 on my machine.

>
> Yes, that would be correct...
>
> > Does IE can’t recognize if a .NET 3.5 is installed?

>
> Yes it does - use Request.UserAgent
>
>
> --
> Mark Rae
> ASP.NET MVP
> http://www.markrae.net
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Not detecting DVD Rom Rajesh.N Windows XP Hardware 2 9th Jan 2008 07:49 AM
usb not detecting =?Utf-8?B?c29wYW5hbQ==?= Windows XP Hardware 1 12th Jun 2005 08:08 PM
detecting HDD Tom Windows XP Hardware 1 21st Apr 2004 01:59 AM
Detecting Tab Key =?Utf-8?B?Q2hhcmxpZQ==?= Microsoft VB .NET 5 6th Feb 2004 01:22 PM
Detecting .NET Vic Microsoft ASP .NET 4 5th Nov 2003 05:00 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:45 AM.