locked
Determine Version of DotNet installed on your machine RRS feed

  • Question

  • User1837974337 posted

    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>

    Saturday, March 7, 2009 3:33 AM

All replies

  • User1282515047 posted

    Excellent contribution :)

    Saturday, March 7, 2009 9:04 AM