UpdatePanel, LinkButtons and RegisterAsyncPostBackControl

Discussion in 'ASP .Net' started by jack, Jun 14, 2008.

  1. jack

    jack Guest

    Hi folks,
    I got a custom control, in which it's placed inside the UpdatePanel.
    The control contains some LinkButtons which post back to the same
    page. Actually, when these LinkButtons are clicked, the entire page is
    refreshed which is not the desired effect. I only need the UpdatePanel
    to be refreshed.

    So, I decided to search the net to solve the issue. I just found that
    when the LinkButtons are registered for the PostBacks, the UpdatePanel
    is just refreshed, not the entire page. i.e., if I call the following
    line of code for each LinkButton, the UpdatePanel will be refreshed
    only.

    this.ScriptManager1.RegisterAsyncPostBackControl(linkButton);

    However, I would like to know

    1. Is this actually the way to go?
    2. Would you please let me know what the above function really does?

    Thanks in advance,
    Jack
     
    jack, Jun 14, 2008
    #1
    1. Advertising

  2. jack

    Munna Guest

    Munna, Jun 14, 2008
    #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. Vidar Petursson

    Re: LinkButtons and MouseOver

    Vidar Petursson, Jul 8, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    1,300
    sramruttun
    Jul 9, 2003
  2. Lucas Tam

    LoadPostData and LinkButtons

    Lucas Tam, Aug 18, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    339
    Lucas Tam
    Aug 18, 2003
  3. JJ
    Replies:
    1
    Views:
    481
    =?Utf-8?B?RG90TmV0SmVyb21l?=
    Feb 26, 2005
  4. Replies:
    3
    Views:
    503
    Rob Meade
    Aug 8, 2007
  5. Nathan Sokalski
    Replies:
    1
    Views:
    610
    miher
    Jun 15, 2009
Loading...

Share This Page