ReadOnlyPropertyBind.aspx 1.0 KB

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