have been updating a 4.5.2 usercontrol project over.. so far simple macros to macro are fine.. we are still using masterpages over mvc.
however, can someone help with with the razor pattern that equates too..
one user control macro submits to a method on another usercontrol macro. (eg add to basket button (panel panel macro), when clicked finds the basket control and calls the addtobascket method on that usercontrol macro
for the life of me I can't see how this is supposed to work with razor... as depending on the position of the macro in the html when the razor script in the panel macro runs there is no way to get a handle to the basket macro as it hasn't been instantiated yet :-(
converting usercontrols over to razor...
have been updating a 4.5.2 usercontrol project over.. so far simple macros to macro are fine.. we are still using masterpages over mvc.
however, can someone help with with the razor pattern that equates too..
one user control macro submits to a method on another usercontrol macro. (eg add to basket button (panel panel macro), when clicked finds the basket control and calls the addtobascket method on that usercontrol macro
for the life of me I can't see how this is supposed to work with razor... as depending on the position of the macro in the html when the razor script in the panel macro runs there is no way to get a handle to the basket macro as it hasn't been instantiated yet :-(
only thing I've found that could be leveraged is
protected override void InitializePage() {
base.InitializePage();
but that too is stuck in the linear nature of the structure of the html.
help..... :-(
is working on a reply...