Test .Net Framework is correctly installed and working fine

Task: Test .Net Framework is correctly installed and working fine.

Description: We can test by creating a aspx file using below code for checking .Net Framework is correctly installed and working fine.

<%@ Page Language="C#"%>
<%@ Import Namespace=Microsoft.Win32 %>
<script runat="server">
void Page_Load(Object s, EventArgs e)
    Label1.Text = "The "+Environment.Version+" .NET Framework <b>is</b> correctly installed and working";
    Label2.Text = "Running on machine " + Environment.MachineName + " at " + System.DateTime.Now.ToString();
<!DOCTYPE html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<DIV align="center" style="margin-top:60px">
<table style="background-color:#ffffff; width:500px; border width:1px solid #666666;" cellpadding="8">
<td style="font-family: arial; font-size: 17px; font-weight: bold; color: #000000;">
      ASP.NET Test
<table style="background-color: #ffffff; width: 500px; border width: 1px solid #666666;" cellpadding="8">
      <td style="line-height:18px">
      This form will determine if .NET is working correctly
<hr noshade width='90%' size='1px'>
<asp:Label ID="Label1" Runat="server">If you can read this then .NET is <b>not</b> working correctly!</asp:Label>
      <asp:Label ID="Label2" Runat="server"></asp:Label>

1 comment:

  1. This comment has been removed by a blog administrator.