Hello again!!
I've extended the LinkButton control to also have an attribute which indikates wether it is aktivated or not. (bool isActivated). The class is called Menu_Item. i got an click event which changes the value betwen true and false. the isActivated is used to determine if sub menu items should be placed under the main Menu_Item.
But my problem is i can't save the value of isActivated when a postback occurs.
i've tried to save it to ViewState
Menu_Item m = new Menu_Item;
ViewState["menu_item"] = m;
and i've also tried to implement the IPostBackDataHandler but i don't know how too use
this interface. have read the KB at msdn.com but i can't make any sense of it..
anyone got a solution on how to save all the attributes in my new class on postback.
in advance thanx