Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Mike Chambers 636 posts 1253 karma points c-trib
    Dec 18, 2012 @ 16:39
    Mike Chambers
    0

    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..... :-(

Please Sign in or register to post replies

Write your reply to:

Draft