Gets the version of the .NET Framework that the current web application targets.
Assembly: System.Web (in System.Web.dll)
This property is normally set by using the targetFramework attribute of the httpRuntime element in the Web.config file.
This property is not guaranteed to return a correct value if the currentapplication domain is not an ASP.NET application domain.
Available since 4.5