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>
Christian Manuel Amado Silva
[MCITP] Windows Vista Consumer Support Technician
[MCTS] Windows Vista, Configuration
[MCTS] .NET Framework 2.0: Web Applications
[MCTS] Microsoft Windows Mobile 5.0 Application Development
[MCTS] Microsoft SQL Server 2005
[MOS] Microsoft Office Master Specialist
SurendraKish...
Contributor
2078 Points
376 Posts
Determine Version of DotNet installed on your machine
Mar 07, 2009 07:33 AM|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..!
NecroxPy
Participant
1370 Points
251 Posts
Re: Determine Version of DotNet installed on your machine
Mar 07, 2009 01:04 PM|LINK
Excellent contribution :)
[MCITP] Windows Vista Consumer Support Technician
[MCTS] Windows Vista, Configuration
[MCTS] .NET Framework 2.0: Web Applications
[MCTS] Microsoft Windows Mobile 5.0 Application Development
[MCTS] Microsoft SQL Server 2005
[MOS] Microsoft Office Master Specialist
Mark a post as an answer when it is