Skip to Content
author's profile photo Former Member
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 a comment
10|10000 characters needed characters exceeded

Related questions

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 a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.