Ask a Question related to ASP.NET Building Controls, Design and Development.
-
Dave #1
Literal content is not allowed within a CustomControl?
Is there a way to put content between tags of a custom control so that it
will populate the defaultproperty such as my TabLabel property? When I tried
to put values between the tags I got the error.
I have ParseChildren as ParseChildren(true, "Tabs")] where Tabs are part of
a tab strip I declare below. The DropDownList control allows this with it's
Value property and I'm wondering how it works...
<cc1:tabstrip id="TabStrip1" runat="server">
<cc1:Tab TabLabel="One">One</cc1:Tab>
<cc1:Tab TabLabel="Two">Two</cc1:Tab>
</cc1:tabstrip>
Dave Guest
-
Content is not allowed in prolog
I try php code attached (tree_source.php), but, in Flex Builder 3 application, line 43: <mx:XML id="dp" source="data/tree_source.php" /> Flex... -
Ignore literal content when parsing custom control children?
Hi, I'm sure this has been asked before... Is there a setting or attribute that I can specify on my control to tell the page parser to ignore... -
Problem overriding render method to format literal content of nested tags in custom control
Peter, I was under the mistaken impression that I was already overriding CreateChildControls to create the controls with the code: protected... -
Adding literal content to webcontrol via editor
Hi Experts. I developed a menu webcontrol, which can be constrcuted by inline XML, something like that: <cc1:menu runat=server id=....>... -
Dave #2
RE: Literal content is not allowed within a CustomControl?
Actually what I meant to say was the ListItem of the DropDownList control
allows it's Text property to be mapped to what ever inner content is defined.
<asp:DropDownList ID="ddwn1" runat=server>
<asp:ListItem Value="1">One</asp:ListItem>
<asp:ListItem Value="2">Two</asp:ListItem>
</asp:DropDownList>
"Dave" wrote:
> Is there a way to put content between tags of a custom control so that it
> will populate the defaultproperty such as my TabLabel property? When I tried
> to put values between the tags I got the error.
>
> I have ParseChildren as ParseChildren(true, "Tabs")] where Tabs are part of
> a tab strip I declare below. The DropDownList control allows this with it's
> Value property and I'm wondering how it works...
>
> <cc1:tabstrip id="TabStrip1" runat="server">
> <cc1:Tab TabLabel="One">One</cc1:Tab>
> <cc1:Tab TabLabel="Two">Two</cc1:Tab>
> </cc1:tabstrip>
>Dave Guest
-
Dave #3
RE: Literal content is not allowed within a CustomControl?
Nevermind...I found the solution here
[url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspp/html/contentrotator.asp[/url]
"Dave" wrote:
> Actually what I meant to say was the ListItem of the DropDownList control
> allows it's Text property to be mapped to what ever inner content is defined.
>
> <asp:DropDownList ID="ddwn1" runat=server>
> <asp:ListItem Value="1">One</asp:ListItem>
> <asp:ListItem Value="2">Two</asp:ListItem>
> </asp:DropDownList>
>
> "Dave" wrote:
>> > Is there a way to put content between tags of a custom control so that it
> > will populate the defaultproperty such as my TabLabel property? When I tried
> > to put values between the tags I got the error.
> >
> > I have ParseChildren as ParseChildren(true, "Tabs")] where Tabs are part of
> > a tab strip I declare below. The DropDownList control allows this with it's
> > Value property and I'm wondering how it works...
> >
> > <cc1:tabstrip id="TabStrip1" runat="server">
> > <cc1:Tab TabLabel="One">One</cc1:Tab>
> > <cc1:Tab TabLabel="Two">Two</cc1:Tab>
> > </cc1:tabstrip>
> >Dave Guest



Reply With Quote

