I was wondering if it would be possible to send a parameter with the constructor of the class?
So to continue Johns example, you would have the ncba.Macrorenderings as the assembly and then write in ncbaDepartments(1234) as the rendertype (where "1234" is the id of some entity).
If this is possible, then we can create a generic class that can the be used for multiple dropdowns, making it easy for non-programmers to add a number of entries in f.ex. an xml file, without having to create a class and compile the code.
Have you tried this? Or is it not possible to do?
Morten Bock - Level 2 certified -
My danish blog with a few
english posts |
CodeGarden on Facebook