New tests.
[mono.git] / mcs / class / System.Web / Test / mainsoft / NunitWebResources / CheckBoxField_Bug595568_2.aspx
1 <%@ Page Language="C#" AutoEventWireup="true" CodeFile="MyPage.aspx.cs" Inherits="MyPage" %>
2 <%@ Import Namespace="Tests" %>
3
4 <script runat="server">
5     protected void Page_Load(object sender, EventArgs e)
6     {
7         if (IsPostBack) return;
8         
9         bool[] ba = new bool [3];
10         ba [0] = true;
11         gridView.DataSource = ba;
12         gridView.DataBind();
13     }
14
15     protected void OnGridViewInit(object sender, EventArgs e)
16     {
17         CustomCheckBoxColumn column = new CustomCheckBoxColumn("2");
18         column.DataField = "!";
19         gridView.Columns.Add(column);
20     }
21 </script>
22 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
23
24 <html xmlns="http://www.w3.org/1999/xhtml">
25 <head runat="server">
26     <title></title>
27 </head>
28 <body>
29     <form id="form1" method="GET" runat="server">
30     <div>
31         <%= MonoTests.stand_alone.WebHarness.HtmlDiff.BEGIN_TAG %><asp:GridView runat="server" ID="gridView" OnInit="OnGridViewInit" AutoGenerateColumns="False" /><%= MonoTests.stand_alone.WebHarness.HtmlDiff.END_TAG %>
32     </div>
33     </form>
34 </body>
35 </html>