UpdatePanel, LinkButtons and RegisterAsyncPostBackControl

J

jack

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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,983
Messages
2,570,187
Members
46,747
Latest member
jojoBizaroo

Latest Threads

Top