<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Index.aspx.cs" Inherits="t1_HelloWorld.Index" %>
<%@ Import Namespace="System.Reflection" %> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<%=Path1 %>
<hr/>
<%=Assembly.GetExecutingAssembly().Location%>
</div>
</form>
</body>
</html>
public partial class Index : System.Web.UI.Page
{
protected string Path1 { get; set; }
protected void Page_Load(object sender, EventArgs e)
{
Path1=Assembly.GetExecutingAssembly().Location;
Response.Write("Hello World");
}
}