Saturday, 29 December 2012

Determine the Version of .Net Framework in the Client System Using Javascript


Determine the Version of .Net Framework in the Client System Using Javascript


Use this javascript code snippet, which gives the version of dontnet framework installed on clients machine, its good when creating installers for the application:


<script language="JavaScript" type="text/javascript">

var a = navigator.userAgent.match(/\.NET CLR [0-9.]+/g);

if (a == null)

document.write( ".NET Framework(s) is not installed" )

else

{

document.write

( "The following versions of .NET Frameworks are installed:<br/>" )

  for (i = 0; i < a.length; ++i)

  {

     document.write( a[i] )

     document.write( "<br/>" )

  }    

}

</script>

No comments:

Post a comment

Thank You for Your Comments. We will get back to you soon.

back to top