Parse Property in Custom Control
- From: c676228 <betty@xxxxxxxxxxxxxxxx>
- Date: Wed, 6 May 2009 13:28:01 -0700
Hi all,
I am looking at our vendor's code as follow(an aspx page). I noticed that
ui:Field is a custom control derived from webcontrols.panel. Also a new
property DataTargets is created. I don't understand this part of the code on
this page:
DataTargets="Text:[[caption]]"
or
DataTargets="Text:<<ParseRichText(text)>>
I am wondering how the code
1)get the "text" for function call ParseRichText(text) on this page
2)where I can find the code to parse the pattern(regex) for DataTargets
thanks
2)
<%@ Page Language="C#" MasterPageFile="~/GS/Core.master"
AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="GS_Default"
Title="Home Page" %>
<asp:Content ID="Content2" ContentPlaceHolderID="cphMain" Runat="Server" >
<div class="RightColumn">
<ui:MessageView ID="msgView" runat="server" />
<ui:ContentProvider ID="ContentProvider1" runat="server"
ContentAreaID="57">
<ui:ContentTemplate ID="ContentTemplate2" runat="server"
ContentType="Text">
<h2 class="Heading"><ui:Field ID="Field1" runat="server"
DataTargets="Text:[[caption]]" /></h2>
<p><ui:Field ID="Field2" runat="server"
DataTargets="Text:[[text]]" /></p>
</ui:ContentTemplate>
<ui:ContentTemplate ID="ContentTemplate33" runat="server"
ContentType="Rich Text">
<h2 class="Heading"><ui:Field ID="Field3" runat="server"
DataTargets="Text:[[caption]]" /></h2>
<p><ui:Field ID="Field4" runat="server"
DataTargets="Text:<<ParseRichText(text)>>" /></p>
</ui:ContentTemplate>
</ui:ContentProvider>
</div>
</asp:Content>
--
Betty
.
- Follow-Ups:
- RE: Parse Property in Custom Control
- From: c676228
- RE: Parse Property in Custom Control
- Prev by Date: How to change the default name in form control ?
- Next by Date: What CSS styles are not inherited for tables in quirks mode?
- Previous by thread: How to change the default name in form control ?
- Next by thread: RE: Parse Property in Custom Control
- Index(es):