First, I should mention that I have DNN4 installed and running in my VS2005 test environment, and things seem to be working fine.
I created a new module, and it has two view controls: One to view a list, and one to view a detail. In defining the module, I have defined the list view without a key (it is to be the default view), and given a unique key name to the details view.
The list control works great, no problems accessing data or anything. But when I click on an entry, it is supposed to show the details control, but it does not. It only shows a blank page (except for skin and default stuff). If I define the "details" control to have no key and remove the list control, things seem to work: I see the details page but with the message I wrote saying there's a problem. Also, a breakpoint on LoadPage stops when there is no Key defined on the details page, but it does not break when I navigate there with a Key defined.
Does anyone have any suggestions? I've read most of what is out there, and I can't find anything wrong with my technique!
In the list, each item is a asp:HyperLink. The page with the module is on: http://localhost:4858/WWD/Home/SpeciesList/tabid/88/Default.aspx, and the page the hyperlinks point to is http://localhost:4858/WWD/Home/SpeciesList/tabid/88/ctl/SpeciesDetails/sid/3/Default.aspx. The highlighted shows the reference, which was gotten from: NavigateUrl='<%# DotNetNuke.Common.Globals.NavigateURL(PortalSettings.ActiveTab.TabID, "SpeciesDetails", "sid="+ Eval("SpeciesID")) %>'
The module definition is included below.
<modules>
<module>
<friendlyname>WoodSpecies</friendlyname>
<cachetime>0</cachetime>
<controls>
<control>
<src>DesktopModules/WoodSpecies/ViewWoodSpeciesNames.ascx</src>
<type>View</type>
<helpurl></helpurl>
</control>
<control>
<key>SpeciesDetails</key>
<src>DesktopModules/WoodSpecies/ViewWoodSpeciesDetails.ascx</src>
<type>View</type>
<helpurl></helpurl>
</control>
<control>
<key>Settings</key>
<title>Wood Species Module Settings</title>
<src>DesktopModules/WoodSpecies/Settings.ascx</src>
<type>Edit</type>
<helpurl></helpurl>
</control>
</controls>
</module>
</modules>