1 <%@ Page Language="C#" CodeFile="MyPage.aspx.cs" Inherits="MyPage" %>
3 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4 <%@ Register TagPrefix="uc1" TagName="ReadOnlyPropertyControl" Src="ReadOnlyPropertyControl.ascx" %>
6 <html xmlns="http://www.w3.org/1999/xhtml" >
8 <title>UrlProperty test</title>
11 <form id="form1" runat="server">
12 <asp:FormView runat="server" ID="fv1" DataSourceID="DataSource1" BackColor="White" BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px" CellPadding="4" ForeColor="Black" GridLines="Vertical" >
14 <uc1:ReadOnlyPropertyControl runat="server" ID="wuc1" ReadOnlyProperty='<%# Bind("Chars") %>' />
15 <uc1:ReadOnlyPropertyControl runat="server" ID="wuc2" ReadOnlyField='<%# Bind("Chars") %>' />
18 <asp:ObjectDataSource ID="DataSource1" runat="server" TypeName="System.Guid" SelectMethod="ToByteArray" />