在内容页面中触发dropdownlist选择索引更改事件后,主页面未再次加载 [英] master page is not loading again after dropdownlist selected index changed event fired in content page

查看:98
本文介绍了在内容页面中触发dropdownlist选择索引更改事件后,主页面未再次加载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





主页页面未在内容页面中选中索引更改事件的下拉列表后再次加载



当我在调试模式下运行代码时,流程为:



- >内容页面加载事件被触发

- >主页面加载事件被触发

- >我更改了内容页面中存在的下拉列表项目中的项目

- >内容页面加载事件被触发

- >主页面加载事件被触发

- >选择索引更改事件被触发

- >没有再次加载母版页。这个母版页的项目没有显示在内容页面中。



放置在更新面板中的下拉列表。 />
如何在选定的索引事件触发后再次加载母版页



提前感谢

Hi,

master page is not loading again after drop down list selected index changed event fired in content page

when I run the code in debug mode,flow is:

-->content page load event is fired
-->master page load event is fired
-->I changed item in drop down list item which is exist in content page
--> content page load event is fired
-->master page load event is fired
-->selected index changed event is fired
-->not loading master page again.due to this master page items are not displaying in content page.

the drop down list placed in update panel.
How to load master page again after selected index event firing

thanks in advance

推荐答案

只有当触发内部的回发事件被触发时,才会更新updatepanel内的内容。



如果你想要更新别的内容,那么也将它放在更新面板中将面板的更新模式设置为Always。



https://msdn.microsoft.com/en-us/library/system.web.ui.updatepanel.updatemode(v = vs.110)。 aspx [ ^ ]
Only things inside the updatepanel are updated when the postback event inside it is triggered.

If you want something else to update then put that in an updatepanel also and set the Update mode of the panels to Always.

https://msdn.microsoft.com/en-us/library/system.web.ui.updatepanel.updatemode(v=vs.110).aspx[^]


是你通过ajax处理下拉事件和加载页面?
were you handle dropdown event and load page by ajax?


这篇关于在内容页面中触发dropdownlist选择索引更改事件后,主页面未再次加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆