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?
C# – how to stop an update panel from refreshing when the same updatepanel does the postback
ajaxcnetupdatepanel
Related Topic
- C# – How to update the GUI from another thread
- C# – Group by in LINQ
- C# – Try-catch speeding up the code
- Javascript – Is Safari on iOS 6 caching $.ajax results
- Javascript – How to return the response from an asynchronous call
- C# – Entity Framework 5 Updating a Record
- Scala: list.flatten: no implicit argument matching parameter type (Any) = > Iterable[Any] was found
Best Answer
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?