my coding(error)
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Text;
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
Response.Write(" The MachineName is " & System.Environment.MachineName.ToString());
//The OSVersion can be identified by the following code-
Response.Write(System.Environment.OSVersion.ToString());
//The Memory Working set can be identified by the following code-
Response.Write(System.Environment.WorkingSet.ToString());
}
}
Devarajan.V
Response.Write(" The MachineName is " & System.Environment.MachineName.ToString());
You are using wrong concatenation operator . You need to use '+' instead of '&'.
Please change you code like given below
Response.Write(" The MachineName is " + System.Environment.MachineName.ToString());Complete Code:
protected void Page_Load(object sender, EventArgs e)
{
Response.Write(" The MachineName is " + System.Environment.MachineName.ToString());
//The OSVersion can be identified by the following code-
Response.Write(System.Environment.OSVersion.ToString());
//The Memory Working set can be identified by the following code-
Response.Write(System.Environment.WorkingSet.ToString());
}
沒有留言:
張貼留言