Buttons inside UpdatePanels are automatically registered as triggers for that UpdatePanel. Is there a way to make the UpdatePanel ignore one of it's inside buttons? That is, to make it so that clicking this button does NOT trigger any sort of postback?
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Carriage Return (ASCII chr 13) is missing from tex
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
That depends on the use for that button. If the button is to call a codebehind method, then a postback is unavoidable as far as I know.
If you'd like your button to only perform a clientside action, then a plain
<input type='button'>
would do better than a<asp:button>
.You can set
UpdateMode='Conditional'
then set the which buttons you want to trigger a post-back in the<Triggers>
tag. Something like this: