母版页加载 [英] master page loading
问题描述
大家好,
我怀疑是母版页先加载还是Web内容页先加载?
在我的应用程序中,某些页面在加载母版页面加载事件后正在加载.其他一些页面先加载,然后母版页面正在加载,我想知道原因.为什么会这样发生?在加载母版页之前,有任何理由要加载Web内容页.
是否有人知道发生这种情况的原因以及解决此问题的方法是什么.
提前谢谢.
谢谢和问候
V.S.R.K. Raju
Hi all,
I have an doubt that is the master page loads first or web content page loads first?
in my application some pages are loading after loading the master page load event.and some other pages are loading first and then master page is loading and i want to know the reason. why it is happening like this any reasons are there to load web content page before loading the master page.
if any body knows the reason why it was happening and what is the solution for this problem.
Thanks In advance.
Thanks and regards
V.S.R.K.Raju
推荐答案
主页面加载始终在内容页面加载之后执行.母版页在运行时就像一个用户控件.
现在,与您一起发生的可能是,您的页面中有一些用户控件.这些用户控件页面加载可能在主页面加载之后执行.
请查看以下内容以获取详细信息: ASP.NET母版页和内容页中的事件 [ ^ ]
Execution of master pageload will always be after content pageload. Master pages act like a usercontrol at runtime.
Now, with you it might be happening is, you have some usercontrols in your page. Those usercontrols pageload might be executing after master pageload.
Have a look at this for full details: Events in ASP.NET Master and Content Pages[^]
这篇关于母版页加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!