UpdatePanel and controls

Discussion in 'ASP .Net' started by DavidC, Apr 1, 2010.

  1. DavidC

    DavidC Guest

    Is it best to always have the web control completely encased in the
    UpdatePanel, or is it possible to just have it in part of the control? For
    example, I have a ListView control that I only need Ajax ability in the
    InsertTemplate. I tried it once before inside an EditTemplate but got
    strange results in the Update command. What are the pros and cons and if
    only inside part of a web control then what do I have to be aware of when
    inserting or editing? Thanks.
    --
    David
    DavidC, Apr 1, 2010
    #1
    1. Advertising

  2. Using an update panel, you can register the events that the update panel
    should manage from a particular control.

    See http://msdn.microsoft.com/en-us/library/system.web.ui.updatepanel.aspx
    for more info.

    "DavidC" <> wrote in message
    news:...
    > Is it best to always have the web control completely encased in the
    > UpdatePanel, or is it possible to just have it in part of the control?
    > For
    > example, I have a ListView control that I only need Ajax ability in the
    > InsertTemplate. I tried it once before inside an EditTemplate but got
    > strange results in the Update command. What are the pros and cons and if
    > only inside part of a web control then what do I have to be aware of when
    > inserting or editing? Thanks.
    > --
    > David
    James VanDyne, Apr 2, 2010
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    3
    Views:
    473
    Rob Meade
    Aug 8, 2007
  2. Ronald S. Cook
    Replies:
    0
    Views:
    752
    Ronald S. Cook
    Jan 23, 2008
  3. Nathan Sokalski
    Replies:
    1
    Views:
    577
    miher
    Jun 15, 2009
  4. Fabien Henriet

    Custom controls and UpdatePanel

    Fabien Henriet, Jan 12, 2008, in forum: ASP .Net Building Controls
    Replies:
    0
    Views:
    751
    Fabien Henriet
    Jan 12, 2008
  5. J055

    Validation controls and UpdatePanel

    J055, Aug 12, 2009, in forum: ASP .Net Web Controls
    Replies:
    3
    Views:
    1,439
    Allen Chen [MSFT]
    Aug 14, 2009
Loading...

Share This Page