ThunderMusic wrote:
> ok, if I understand it well, if I put something like [ParseChildren(false)
]
> before my class, I should be able to put almost anything between my contro
l
> tags? I'm asking the question because I don't have access to my control
> right now, but I want to know if I understood it well. will it work for a
> usercontrol?
> Thanks a lot
> ThunderMusic
>
Hi,
Your original question seemed to concern a custom control, rather than
a user control (just guessing, since you had the cc: prefix). It works
for custom controls. E.g. from VB:
<ParseChildren(False)> _
Public Class Blarg
Inherits System.Web.UI.WebControls.WebControl
'Implement Custom Control Here
End Class
But I'm not sure how it would work with a user control. I've never
thought or tried to apply attributes to these. I'd have expected it to
be a directive of some kind, but I cannot see anything. Anyone else
know if it's possible to apply attributes to user controls?
Damienanyway I've done it with a custom control instead of a user control, it
seemed easier that way.
thanks a lot
"Damien" <Damien_The_Unbeliever@.hotmail.com> a crit dans le message de
news: 1135151487.549066.179610@.g47g2000cwa.googlegroups.com...
> ThunderMusic wrote:
> Hi,
> Your original question seemed to concern a custom control, rather than
> a user control (just guessing, since you had the cc: prefix). It works
> for custom controls. E.g. from VB:
> <ParseChildren(False)> _
> Public Class Blarg
> Inherits System.Web.UI.WebControls.WebControl
> 'Implement Custom Control Here
> End Class
> But I'm not sure how it would work with a user control. I've never
> thought or tried to apply attributes to these. I'd have expected it to
> be a directive of some kind, but I cannot see anything. Anyone else
> know if it's possible to apply attributes to user controls?
> Damien
>
Monday, March 12, 2012
want to have <cc:UserControl>some text and tags</cc:UserControl>... H
Labels:
asp,
ccusercontrolgt,
class,
false,
ltccusercontrolgtsome,
net,
parsechildren,
tagslt,
text,
thundermusic,
wrotegt
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment