/usr/share/asp.net-demos/1.1/html/htmltable.aspx is in asp.net-examples 4.2-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 | <%@ Page Language="C#" %>
<%@ Register TagPrefix="mono" TagName="MonoSamplesHeader" src="~/controls/MonoSamplesHeader.ascx" %>
<html>
<head>
<link rel="stylesheet" type="text/css" href="/mono-xsp.css">
<title>HtmlTable, HtmlTableRow, HtmlTableCell</title>
<script runat="server">
void Page_Load(Object sender, EventArgs e)
{
for (int i = 0; i < 5; i++){
HtmlTableRow row = new HtmlTableRow ();
for (int j = 0; j < 4; j++){
HtmlTableCell cell = new HtmlTableCell ();
cell.Controls.Add (new LiteralControl ("Row " + i + ", cell " + j));
row.Cells.Add (cell);
}
myTable.Rows.Add (row);
}
}
</script>
</head>
<body><mono:MonoSamplesHeader runat="server"/>
<form runat="server">
<p>
<table id="myTable" CellPadding=2 CellSpacing=1 Border="2" BorderColor="blue" runat="server" />
</form>
</body>
</html>
|