Ajax postback resets tab index -1

拜拜、爱过 提交于 2020-02-06 05:46:04

问题


After postback from Modal Popup Extender all controls tab index set to -1, i am not able to find any solution for this, And there are more than 100 controls in my page.

How i can keep the Tab Index of all my controls in ASP.NET page.


回答1:


Check your calls to .Show() for the modal popup extender. When you call .Show() it stores all the TabIndexes for your controls to a variable. It does this so it can prevent your controls from being in the tab order while the MPE is shown. If you call .Show() while the MPE is already shown (and has already modified the TabIndexes) it will store the -1's over top of the previous values and put them back when the MPE is hidden, thinking it is doing the right thing.



来源:https://stackoverflow.com/questions/3825899/ajax-postback-resets-tab-index-1

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!