ASP.Net Usercontrol可见但未呈现 [英] ASP.Net Usercontrol visible but not rendered
问题描述
我有一个仪表板页面,其中有5个标签.而且我有5个用户控件.当单击选项卡时,我要为该选项卡动态加载相应的用户控件.该选项卡在更新面板内部.现在的问题是,用户控件已加载但未呈现.我的意思是,我在查看源代码中看不到它的html内容和它的javascript.因此,现在在用户控件的页面加载后,我无法调用javascript函数(我已将其放在用户控件页面中).有人可以帮忙吗?在此先感谢..
I have a dashboard page in which there are 5 tabs. And i have 5 user controls. When clicked on a tab, i want to dynamically load the corresponding user control for the tab. The tab is inside update panel. Now the problem is, the user control is loaded but not rendered. I mean, i cant see its html content and its javascript in view source. So now i am unable to call a javascript function(which i had put in the usercontrol page) after usercontrol''s page load. Can anyone help on this? Thanks in advance..
推荐答案
使用ajax tabcontainer控件解决您的问题
use ajax tabcontainer control to reslove ur problem
这篇关于ASP.Net Usercontrol可见但未呈现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!