• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Mutiple UpdatePanels on a page

D

Danny Ni

#1
Hi,

I have 3 UpdatePanel on a page: UpdatePanel1, UpdatePanel2, UpdatePanel3. I
have a button inside UpdatePanel2, when this buttons is clicked all 3
UpdatePanels got updated, is this normal behavior? I only expect UpdatePanel
2 to be updated.

TIA
 

My Computer

A

Andrew Morton

#2
Danny Ni wrote:

> I have 3 UpdatePanel on a page: UpdatePanel1, UpdatePanel2,
> UpdatePanel3. I have a button inside UpdatePanel2, when this buttons
> is clicked all 3 UpdatePanels got updated, is this normal behavior? I
> only expect UpdatePanel 2 to be updated.
This has the info you're looking for:

"Building Interactive User Interfaces with Microsoft ASP.NET AJAX: Using the
UpdatePanel"
http://www.4guysfromrolla.com/articles/102407-1.aspx

Andrew
 

My Computer

D

Daniel Ulfe

#3
Hi,

That is the "default" behavior... to change it... just set the property
"UpdateMode" to "Conditional" in your UpdatePanels.

http://codeclimber.net.nz/archive/2...ault-value-for-the-UpdatePanel-is-Always.aspx

Daniel.

Danny Ni wrote:

> Hi,
>
> I have 3 UpdatePanel on a page: UpdatePanel1, UpdatePanel2, UpdatePanel3. I
> have a button inside UpdatePanel2, when this buttons is clicked all 3
> UpdatePanels got updated, is this normal behavior? I only expect UpdatePanel
> 2 to be updated.
>
> TIA
>
>
 

My Computer

Users Who Are Viewing This Thread (Users: 1, Guests: 0)