Thats interesting, why is my name Microsoft!? Should be fixed now...
"Microsoft" <> wrote in message
news:u93O8%...
> How can I develop a custom control that can then be used to display
> dynamically generated data?
> I have created a simple custom control which I use to reproduce the same
> style box in my website repeatedly. The content for the box is placed
> between the tags of the control in the aspx file.
> However if I want to inject some dynamic text I get the error "code blocks
> are not supported in this context", how can I get around this?
>
> This is the HTML code that I am using to create an instance of my control.
> Everything works correctly as long as the HTML code within the control
> tags is vanilla HTML. I am using .NET 2 and I've enabled the
> ParseChildren(false) tag to my control so as to be able to access the
> vanilla HTML.
>
> ===============================
> <Box:ShadedBox Width="90%" BoxTitle="Registration" runat="server">
> <%="hi" %>
> </Box:ShadedBox>
>
>
> ===============================
>
> Any help would be appreciated, I am new to this ASP.NET development having
> only ever worked with ASP or PHP before now where code was permitted to be
> inserted anywhere.
> Regards,
> Anthony Williams
>
|