M
mr dropdown
A very useful answer from Mike MacMillan a few days ago helped me create the
server control I wanted. It is something like:
<Main:Control>
<Children>
<Collection1 value=1></Collection1>
<Collection1 value=2></Collection1>
<Collection2 value=3></Collection1>
<Collection2 value=4></Collection1>
</Children>
</Main:Control>
I'm soing it by using several controlBuilders, one for each HTML tag type.
The question is - how, in general, the cs file should look like? I mean, I
have several classes, several control builders etc.
First I wrote them 1 after the other in the root of the cs (inside the
nameSpace) but then I realized that it's not very smart because when creating
an instance of the control from a webForm page behind then after the name of
the instance variable you can see in the intellisense all the class and all
the controlBuilders! I tried to change the control builders "public" to
"private" or "protected" but the compiler didn't like it. Then I just removed
the word "public" and it worked fine - now I can't see the control builders
from the code-behind intellisense. The question is - how should I do it?? I
guess that answer won't be to remove the "public" from before the control
builder declaration.
Then I moved to the second problem - again in the interllisense, I could see
the following options -Children, Collection1 , Collection2. It doesn't make
sense. I wanted to see only children and then in the intellisense of children
to see Collection1 and Collection2.
My main question in here is - help. How should I arrange the server control
class so it will show in the interllisense only the relevant options and only
in the corrent location.
Thanks
server control I wanted. It is something like:
<Main:Control>
<Children>
<Collection1 value=1></Collection1>
<Collection1 value=2></Collection1>
<Collection2 value=3></Collection1>
<Collection2 value=4></Collection1>
</Children>
</Main:Control>
I'm soing it by using several controlBuilders, one for each HTML tag type.
The question is - how, in general, the cs file should look like? I mean, I
have several classes, several control builders etc.
First I wrote them 1 after the other in the root of the cs (inside the
nameSpace) but then I realized that it's not very smart because when creating
an instance of the control from a webForm page behind then after the name of
the instance variable you can see in the intellisense all the class and all
the controlBuilders! I tried to change the control builders "public" to
"private" or "protected" but the compiler didn't like it. Then I just removed
the word "public" and it worked fine - now I can't see the control builders
from the code-behind intellisense. The question is - how should I do it?? I
guess that answer won't be to remove the "public" from before the control
builder declaration.
Then I moved to the second problem - again in the interllisense, I could see
the following options -Children, Collection1 , Collection2. It doesn't make
sense. I wanted to see only children and then in the intellisense of children
to see Collection1 and Collection2.
My main question in here is - help. How should I arrange the server control
class so it will show in the interllisense only the relevant options and only
in the corrent location.
Thanks