Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Module navigation - 2 views in same moduleModule navigation - 2 views in same module
Previous
 
Next
New Post
6/30/2007 2:49 PM
 

jstranger wrote

I am not quite getting the NavigateURL syntax. I have a Gridview with a list of items and want to navigate to a form control to display item details. I have tried setting the grid column containing the link as follows:

<asp:HyperLink ID="hName" Runat="server" Text='<%# Bind("Name") %>' NavigateUrl='<%# DotNetNuke.Common.Globals.NavigateURL(PortalSettings.ActiveTab.TabID, "HotelForm","mid="+ Cstr(ModuleId), "hotelid="+ Eval("HotelID")) %>' />

 

 

 

is Eval("HotelID") a double? If so it may be trying to use arithmatic to "add" "hotelid=" to the value of "hotelid. Can you cast "hotelid" as a string? Cstr(Eval("HotelID"))

 



Michael Washington
http://ADefWebserver.com
www.ADefHelpDesk.com
A Free Open Source DotNetNuke Help Desk Module
 
New Post
7/1/2007 3:33 AM
 

Thanks Michael - that did it.

Jon

 
New Post
7/1/2007 4:38 AM
 

I was premature in thinking the problem was solved. I changed the code to read:

<asp:HyperLink ID="hName" Runat="server" Text='<%# Bind("Name") %>' NavigateUrl='<%# DotNetNuke.Common.Globals.NavigateURL(PortalSettings.ActiveTab.TabID, "HotelForm","mid="+ Cstr(ModuleId), "hotelid="+ Cstr(Eval("HotelID"))) %>'  />

and what appears to be a correct url is generated:

http://localhost:4195/DNN451/Hotels/tabid/58/ctl/HotelForm/mid/384/hotelid/8/Default.aspx

but the control is not loaded/displayed and there are no error messages. And breakpoints in Page_Init or Page_Load are not hit.

The module definition file includes:

           <control>
              <key>HotelForm</key>
              <src>DesktopModules/Hotels/ViewHotel.ascx</src>
              <type>View</type>
            </control>

Any suggestions what is wrong or how to go about debugging this?

Jon

 
New Post
7/1/2007 5:30 AM
 

Now resolved - I had added the 2nd control into the .dnn file but hadn't edited the module definition through the Superuser UI (I had assumed that all this did was modify the .dnn).

 

Jon

 
New Post
7/1/2007 8:20 AM
 

<asp:HyperLink ID="hName" Runat="server" Text='<%# Bind("Name") %>' NavigateUrl='<%# DotNetNuke.Common.Globals.NavigateURL(PortalSettings.ActiveTab.TabID, "HotelForm","mid="+ Cstr(ModuleId) + "?hotelid="+ Cstr(Eval("HotelID"))) %>'  />



Michael Washington
http://ADefWebserver.com
www.ADefHelpDesk.com
A Free Open Source DotNetNuke Help Desk Module
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Module navigation - 2 views in same moduleModule navigation - 2 views in same module


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out