Custom Control with different Templares...
-
Hello to everybody, I'm currently writing my first "serious" Server Control, I have written a dual layer tabbed Menu (not ajax).. it's almost finished but today I discovered we'll have two different menu based on user credential. I'll use it into a MasterPage and it will be present in all the pages I've developed. How can I make something as some ASP.NET control do? for example
<cc1:ServerControl1 runat="server">
<CaseAdmin>
<TopLevelItems>
<TopLevelItem Text="First Item - Admin">
<TopLevelItem Text="Second Item - Admin">
</TopLevelItems>
</CaseAdmin>
<CaseUser>
<TopLevelItems>
<TopLevelItem Text="First Item - User">
<TopLevelItem Text="Second Item - User">
</TopLevelItems>
</CaseUser>Is somewhere an example on how to do this? Thanks Bests Paolo