|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
TemplateControl??Is it possible to create a custom control like the below example.
Basically the custom control will have a public property of type PlaceHolder. What ever html content is enter between the <Container> elements should be added to part of the Placeholders control colleciton. Is this possible? any good resources for doing this out there? --------------- <cc1:MyCustomControl id="Control" runat="server"> <Container> //insert html content </Container> </cc1:MyCustomControl> ---------------- Thanks! Ron Yes, you can. Here are a couple of articles:
http://msdn.microsoft.com/msdnmag/issues/02/01/cutting/ http://msdn.microsoft.com/msdnmag/issues/03/06/CuttingEdge/default.aspx -Brock DevelopMentor http://staff.develop.com/ballen Show quoteHide quote > Is it possible to create a custom control like the below example. > Basically the custom control will have a public property of type > PlaceHolder. What ever html content is enter between the <Container> > elements should be added to part of the Placeholders control > colleciton. > > Is this possible? any good resources for doing this out there? > --------------- > <cc1:MyCustomControl id="Control" runat="server"> > <Container> > //insert html content > </Container> > </cc1:MyCustomControl> > ---------------- > > Thanks! > Ron Excellent, the second one was what I was looking for,
Thanks! Ron Show quoteHide quote "Brock Allen" <ballen@NOSPAMdevelop.com> wrote in message news:460349632490400784899328@msnews.microsoft.com... > Yes, you can. Here are a couple of articles: > > http://msdn.microsoft.com/msdnmag/issues/02/01/cutting/ > http://msdn.microsoft.com/msdnmag/issues/03/06/CuttingEdge/default.aspx > > -Brock > DevelopMentor > http://staff.develop.com/ballen > > > >> Is it possible to create a custom control like the below example. >> Basically the custom control will have a public property of type >> PlaceHolder. What ever html content is enter between the <Container> >> elements should be added to part of the Placeholders control >> colleciton. >> >> Is this possible? any good resources for doing this out there? >> --------------- >> <cc1:MyCustomControl id="Control" runat="server"> >> <Container> >> //insert html content >> </Container> >> </cc1:MyCustomControl> >> ---------------- >> >> Thanks! >> Ron > > >
Customizing ASP.NEt Hyperlink Control
Need Click Event to Fire from TextBox custom validator and button events Urgent! GridView and templated controls binding---------Plz help Defining server-side Click event for Label web contol ? Control Template How do I post hidden variables to another form from a popup? Creating a Tab in web form Windows Explorer style custom control for web make a button deault |
|||||||||||||||||||||||