/usr/share/asp.net-demos/1.1/asp.net/session1.aspx is in asp.net-examples 3.8-2.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | <%@ Page Language="C#" %>
<%@ Register TagPrefix="mono" TagName="MonoSamplesHeader" src="~/controls/MonoSamplesHeader.ascx" %>
<html>
<script runat=server>
private static int _clicked = 0;
void Clicked (object o, EventArgs e)
{
uno.InnerText = String.Format ("Somebody pressed me {0} times.", ++_clicked);
}
private static int _txt_changed = 0;
void txt_Changed (object sender, EventArgs e)
{
dos.InnerText = String.Format ("Text have changed {0} times.", ++_txt_changed);
}
</script>
<head>
<title>Session Test</title>
<link rel="stylesheet" type="text/css" href="/mono-xsp.css">
</head>
<body><mono:MonoSamplesHeader runat="server"/>
<form runat="server">
<asp:Button id="btn"
Text="Submit"
OnClick="Clicked"
runat="server"/>
<br>
<span runat=server id="uno"></span>
<br>
<span runat=server id="dos"></span>
<br>
<asp:TextBox id="txt1" Text="You can write here." TextMode="MultiLine" OnTextChanged="txt_Changed" runat="server" rows=5 />
<br>
</form>
</body>
</html>
|