Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Building Controls > Ignore literal content when parsing custom control children?

Reply
Thread Tools

Ignore literal content when parsing custom control children?

 
 
Donal McWeeney
Guest
Posts: n/a
 
      09-03-2004
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 literal content when parsing children of my custom
control?

I'm overriding RenderChildren of my parent control and the literal content
is causing me so headaches.

Also is there a best practices document on creating custom controls.

Any ideas gratefully appreciated.

Thanks

Donal


 
Reply With Quote
 
 
 
 
Teemu Keiski
Guest
Posts: n/a
 
      09-05-2004
Hi,

by overriding AddParsedSubObject method of your control you can control that
are LiteralControls added Also ControlBuilder can help you

Here is one article discussing these
http://www.codeproject.com/aspnet/No...lRendering.asp


--
Teemu Keiski
MCP, Microsoft MVP (ASP.NET), AspInsiders member
ASP.NET Forum Moderator, AspAlliance Columnist
http://blogs.aspadvice.com/joteke



"Donal McWeeney" <> wrote in message
news:...
> 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 literal content when parsing children of my custom
> control?
>
> I'm overriding RenderChildren of my parent control and the literal content
> is causing me so headaches.
>
> Also is there a best practices document on creating custom controls.
>
> Any ideas gratefully appreciated.
>
> Thanks
>
> Donal
>
>



 
Reply With Quote
 
 
 
 
Donal McWeeney
Guest
Posts: n/a
 
      09-06-2004
Hi Teemu,

thanks for the pointer, will check it out...

Donal


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
What's wrong with rpc-literal? Why use doc-literal? Anonieko Ramos ASP .Net Web Services 0 09-27-2004 09:06 AM
"Literal content is not allowed within a user control"? =?Utf-8?B?RGF2ZQ==?= ASP .Net 0 05-17-2004 03:21 AM
Ignore + TEST + Ignore SpooderStank Computer Support 2 04-08-2004 11:26 AM
Problem overriding render method to format literal content of nested tags in custom control Stephen Miller ASP .Net Building Controls 12 01-20-2004 08:52 AM
Control with literal content news.microsoft.com ASP .Net Web Controls 1 12-17-2003 01:09 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57