2
0

ReadOnlyPropertyBind.aspx 952 B

1234567891011121314151617181920
  1. <%@ Page Language="C#" CodeFile="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. </ItemTemplate>
  14. </asp:FormView>
  15. <asp:ObjectDataSource ID="DataSource1" runat="server" TypeName="System.Guid" SelectMethod="ToByteArray" />
  16. </form>
  17. </body>
  18. </html>