dimanche 1 février 2015

asp.net user control with multiple content area

In this website and some other websites there are topics about creating an asp.net user control which has a content placeholder or content area so you can put whatever you like inside your own user control. It will be like this :



<someprefix:yourcontrolname runat="server">
<content>
//plain text or complicated control can be here
</content>
</someprefix:yourcontrolname>


But how can I create one with multiple content area like this one :



<someprefix:yourcontrolname runat="server">
<content1>
//plain text or complicated control can be here
</content1>
<content2>
//plain text or complicated control can be here
</content2>
</someprefix:yourcontrolname>




Aucun commentaire:

Enregistrer un commentaire