Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

25 lines
606 B
Plaintext

<%@ language="C#" debug="true" %>
<html>
<script runat=server>
void Clicked (object o, EventArgs e)
{
Console.WriteLine (HttpContext.Current.Server.MapPath
("site.config"));
}
</script>
<head>
<title>Button</title>
</head>
<body>
<form runat="server">
<%= String.Format ("FilePath: {0} {1}", Context.Request.FilePath, GetType ().Name) %>
<%= String.Format ("CurrentExecutionFilePath: {0}", Context.Request.CurrentExecutionFilePath, GetType ().Name) %>
<br>
<asp:Button id="btn"
Text="Submit"
OnClick="Clicked"
runat="server"/>
</form>
</body>
</html>