Reputation: 1737
I have an update panel with a linkbutton inside of it. The updatepanel has its updatemode set to conditional. From what I understand, regardless if the updatemode is set to conditional, it will refresh the panel, if something inside of it initiates the postback. Is there anyway around this?
Upvotes: 1
Views: 3197
Reputation: 184
Why don't you just set ChildrenAsTriggers="false" on the update panel? Update mode must be conditional then, but it won't update if I understand things correctly.
EDIT: Sorry, just realized it's an old thread :(
Upvotes: 2
Reputation: 50728
Put the content you want to avoid the postback outside of the updatepanel, as far as I know. I haven't heard of another alternative, unless you manually update the UI via JavaScript and AJAX web services.
If you can, don't know the situation, you could consider having the link as a client-side link, and have it do whatever you need to do... as in:
<a href="javascript:void(0);" onclick="doThis();">Do This</a>
What do you need to do?
Upvotes: 1