why i lose the refresh only inside updatepanel

Last post 04-21-2006 3:50 PM by spherop2. 1 replies.

Sort Posts:

  • why i lose the refresh only inside updatepanel

    04-21-2006, 3:36 PM
    • Member
      272 point Member
    • spherop2
    • Member since 04-17-2003, 9:46 AM
    • Posts 59

    OK forgive me for being a bit vague and fishing here - and not posting code (it's a bit too db dependent to be of use)

    My problem is that in the process of my work 2 times now - one of my "trigger controls" for an updatepanel somehow stops it's proper behavior and starts refreshing the whole page instead of the contents of the updatepanel. I have the triggers placed there and the IDs are correct as well as the EventNames. I know things only break when something changes .. but I am fishing here for experiences or advice on common scenarios why a control will get disconnected from its update panel.

    I would think as long as no errors are raised at runtime - that a trigger should generally work. And they have worked, but then at some point when moving blocks of code around in the aspx - something gets broken - but I can't figure out what!!??

    Any general thoughts?

     

  • Re: why i lose the refresh only inside updatepanel

    04-21-2006, 3:50 PM
    • Member
      272 point Member
    • spherop2
    • Member since 04-17-2003, 9:46 AM
    • Posts 59
    ok 5 minutes later I fixed one of the 2 scenarios which was related to a DetailsView - the event that the trigger was looking for was only properly handled if

    AutoGenerateInsertButton

    was true. OK now.

    -------------------------

    The other scenario though I can't yet crack - it's a timer control that is refreshing the whole page and not the updatepanel.

    <atlas:TimerControl runat="server" ID="myTimer" Interval="3000">

    </

    atlas:TimerControl>

    <atlas:UpdatePanel runat="server" ID="upConvo" Mode="Conditional">

    <ContentTemplate>

    ..... stuff is here

    </ContentTemplate>

    <Triggers>

    <atlas:ControlEventTrigger ControlID="myTimer" EventName="Tick" />

    <atlas:ControlEventTrigger ControlID="dvInsert" EventName="ItemCommand" />

    <atlas:ControlEventTrigger ControlID="ddConvos" EventName="SelectedIndexChanged" />

    <atlas:ControlEventTrigger ControlID="tabMenu" EventName="MenuItemClick" />

    </Triggers>

    </atlas:UpdatePanel>
Page 1 of 1 (2 items)