Detecting .NET CLR from IE?

  • Thread starter Thread starter Asaf
  • Start date Start date
A

Asaf

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
 
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
 
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
 
Back
Top