我怎样才能找到html的来源
我想知道页面加载 html 的形式... 例如,在我的开发页面中,我找到了这段代码
<div id="dnn_NavPane"><a name="alo"></a>
<table width="100%" cellspacing="0" cellpadding="0" border="0">
//some code here
</table>
</div>
在源代码中我找到了 .ascx 文件,其中我只看到了这个
<div runat="server" id="NavPane"></div>
所以我大约 2 小时找不到他觉得 div 包含该内容的地方?我怎样才能找到该代码?
他们在这里使用了DotNetNuke,也许秘密就在其中?谁可以帮忙?
I want to know form where page loads html...
For example, in my developing page I find this code
<div id="dnn_NavPane"><a name="alo"></a>
<table width="100%" cellspacing="0" cellpadding="0" border="0">
//some code here
</table>
</div>
In sources I find that .ascx file, in which I see only this
<div runat="server" id="NavPane"></div>
So I about 2 hours can't find from where he feel div with that content? How can I find that code?
Here they used DotNetNuke
and maybe secret is in that? Who can help?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
当您的 DotNetNuke 皮肤的
为
runat=server
时,它会转换为“窗格”。 DotNetNuke 允许您将模块添加到窗格中,因此您需要查看其中有哪些模块,以了解其标记是如何生成的。它可能位于网站的DesktopModules
文件夹中的某个位置,您可以在“模块定义”或“扩展”页面(取决于 DNN 的版本)中查找它,以查看有关模块的更多信息。如果您无权访问正在运行的网站,模块到窗格的分配将存储在数据库中。您需要在
Tabs
表中找到该页面,然后检查TabModules
表中的条目以查看该选项卡上的窗格中包含哪些模块。从那里,按照TabModules
到Modules
到ModuleDefinitions
到ModuleControls
来查看哪个控件正在生成标记。When your DotNetNuke skin has a
<div />
that isrunat=server
, that gets transformed into a "pane." DotNetNuke allows you to add modules to the pane, so you'd need to see what module is in there to see how its markup is being generated. It will probably be somewhere in the website'sDesktopModules
folder, and you can look it up in the "Module Definitions" or "Extensions" page (depending on the version of DNN) to see more information about a module.If you don't have access to the running website, the assignment of a module to a pane is stored in the database. You'll want to find the page in the
Tabs
table, then check the entries in theTabModules
table to see what module is in that pane on that tab. From there, followTabModules
toModules
toModuleDefinitions
toModuleControls
to see which control is generating the markup.如果他们使用 DotNetNuke,则内容是动态生成的。
您只能看到
因为内容是动态添加到其中的。
如果您想编辑 html,那么您需要通过 DotNetNuke 内容管理系统对其进行编辑。
If they are using DotNetNuke then the content is being dynamically generated.
You can only see
<div runat="server" id="NavPane"></div>
because the content is dynamically being added to this.I you want to edit the html, then you will need to edit it through the DotNetNuke Content Management System.
您知道该元素的服务器 ID 是 NavPane。转到代码隐藏并跟踪该控件的所有操作。尝试计算出内部 html 何时被分配。然后附加到服务器进程,在那里设置断点并在调试器中查看会发生什么。
也许:)如果你不知道底层是如何工作的,你的任务的复杂性就会充分增长
you know that server id of the element is NavPane. Go to codebehind and track all the operations with that control. try to work out when the inner html is assigned. Then attach to server process, make breakpoints there and see in debugger what happens.
maybe :) if you don't know how the underlying layer works the complexity of your task grows sufficiently