Skip to Content
author's profile photo
Former Member

MVC: Layout and detail problems

Hi guys, hope your thinking caps are on 😊

I have a controller which has a drop downlist box and 2 BSP call's to other controllers in the view.

When I select an item from the drop down I want the two other controllers to refresh as well.

I have the controllers declared in my DO_INIT and in my main view they are all between the FORM tags however the two other controllers only refresh at startup and not after I select from the drop down.

I know that the problem is simply that nothing is telling the controllers to refresh and if I do the controllers as "subcontroller" it works but then I loose my formatting, the two controllers are located in the middle of a gridlayout with other items in cells around them.

Thoughts, suggestions? It has to be something easy I am missing.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Best Answer
    Posted on Jan 19, 2005 at 11:01 AM

    Hey Craig,

    once again, let's start the discussion (will it turn out to become that long again ...?) 😉

    I would avoid using the term "refreshing a controller".

    Refreshing is linked to the display of the page, whereas the controller is not.

    My guess is that you want just the areas, where your 2 sub-controllers (more exactly, their views) reside, to load again when you make a selection in the dropdown.

    To clear some uncertainty - should the whole page be loaded again on dropdown selection, or should it not (or does it not matter)? I think you want to use something like onClientSelect, but let's get sure about that before I run into the wrong direction ...

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Maximilian Schaufler

      Yes I meant the same as well.

      You are right that's the way it should work but my break points don't pop up that way. I will check again tomorrow maybe it's just been a long day?