Detecting .NET CLR from IE?

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
 
M

Mark Rae [MVP]

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
 
A

Asaf

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
 

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

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,065
Latest member
OrderGreenAcreCBD

Latest Threads

Top