The user-agent string that is sent in browser headers is stored in the registry of the server computer, as listed in the following table.

Version Registry Key
3.0 HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\User Agent\Post Platform\.NET CLR.3.0.04131.06
Note   The build number (04131.06 in the example) will change for the final release of .NET Framework 3.0.
2.0 HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\User Agent\Post Platform\.NET CLR 2.0.50727
1.1 HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\User Agent\Post Platform\.NET CLR 1.1.4322

Sample Script for Detecting the .NET Framework 3.0 Using Internet Explorer<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Sample Script for Detecting the .NET Framework 3.0 Using Internet Explorer
<html xmlns="http://www.w3.org/1999/xhtml">
Sample Script for Detecting the .NET Framework 3.0 Using Internet Explorer  
<head>
Sample Script for Detecting the .NET Framework 3.0 Using Internet Explorer    
<title>Test for NET Framework 3.0</title>
Sample Script for Detecting the .NET Framework 3.0 Using Internet Explorer    
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

相关文章: