Reputation: 15200
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?
Upvotes: 2
Views: 157
Reputation: 155995
When your DotNetNuke skin has a <div />
that is runat=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's DesktopModules
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 the TabModules
table to see what module is in that pane on that tab. From there, follow TabModules
to Modules
to ModuleDefinitions
to ModuleControls
to see which control is generating the markup.
Upvotes: 3
Reputation: 1748
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.
Here they used DotNetNuke and maybe secret is in that?
maybe :) if you don't know how the underlying layer works the complexity of your task grows sufficiently
Upvotes: 0
Reputation: 20364
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.
Upvotes: 3