If I got you correctlt then try like this
.aspx Page
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="envornment.aspx.cs" Inherits="TestApplication.envornment" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
User Name :
<asp:Label ID="lblUserName" runat="server"></asp:Label>
<br />
User Domain Name :
<asp:Label ID="lblUserDomainName" runat="server"></asp:Label>
</div>
</form>
</body>
</html>
.aspx.cs Page
using System;
namespace TestApplication
{
public partial class envornment : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
lblUserName.Text = Request.ServerVariables["REMOTE_USER"];
lblUserDomainName.Text = Request.ServerVariables["REMOTE_ADDR"];
}
}
}