/usr/share/asp.net-demos/1.1/html/button.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 | <%@ Page Language="C#" %>
<%@ Register TagPrefix="mono" TagName="MonoSamplesHeader" src="~/controls/MonoSamplesHeader.ascx" %>
<html>
<head>
<link rel="stylesheet" type="text/css" href="/mono-xsp.css">
<script runat="server">
void Button1_OnClick(object Source, EventArgs e)
{
HtmlButton button = (HtmlButton) Source;
if (button.InnerText == "Enabled 1"){
Span1.InnerHtml="You deactivated Button1";
button.InnerText = "Disabled 1";
}
else {
Span1.InnerHtml="You activated Button1";
button.InnerText = "Enabled 1";
}
}
</script>
</head>
<body><mono:MonoSamplesHeader runat="server"/>
<h3>HtmlButton Sample</h3>
<form id="ServerForm" runat="server">
<button id=Button1 runat="server" OnServerClick="Button1_OnClick">
Button1
</button>
<span id=Span1 runat="server" />
</form>
</body>
</html>
|