Use this javascript code snippet, which gives the version of dontnet framework installed on clients machine, its good when creating installers for the application.
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>
Participant
1330 Points
373 Posts
Determine Version of DotNet installed on your machine
Mar 07, 2009 03:33 AM|SurendraKishore|LINK
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>
Code sample asp .net ... c# ... SQL .net code snippets Tips & Tricks application "Asp.net 2.0"
THIS REDUCES TIME FOR OTHERS..!
Participant
892 Points
254 Posts
Re: Determine Version of DotNet installed on your machine
Mar 07, 2009 09:04 AM|NecroxPy|LINK
Excellent contribution :)
Mark a post as an answer when it is