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.0Pass parameter to module itselfPass parameter to module itself
Previous
 
Next
New Post
5/28/2007 9:14 AM
 

Hi,

I'm developing simple module (named Shops) showing list (DataList) of shops including link for detailed view for every shop.

I've created new module (basicaly including ViewShops, EditShops and Settings controls) and added new control named DetailShops. Then added this control in Module Definitions in Host settings

I'm trying to make a link in my list of shops that will show the DetailShops control including detailed information about the selected shop. I've tried Globals.NavigateUrl(...) byt I don't know exactly how to make it work correctly.

How do I build the link to pass the parameter and show DetailShop control?

 

Thanks a lot for help or some link to tutorial. (Couldn't find anything :( )

 

I'm using DNN 4.5.1

 
New Post
5/28/2007 11:13 PM
 

Guris,

 

In order for the new contol to be show in the module, you need to add a unique identifier to the ResourceKey field in the control propeties (Configure with Host settings).  For example:

Add "DetailShops" to the ResourceID of the DetailShops control, then use something like the following to create the URL that you can use in a link or button.

string newURL = Globals.NavigateURL(PortalSettings.ActiveTab.TabID, "DetailShop");

The NavigateURL function is overloaded, so if you want to pass the new control parms in the query string, you can do it very easily.

Hope this helps...

-Scott

 
New Post
5/29/2007 1:17 AM
 

You can use the NavigateURL() method or Globals.NavigateURL(). Kindly refer the below line of code

NavigateURL(TabId, "Control_Key_Name", "mid=" & ModuleId & "&Name_Parameter_to_Pass=" & Convert.ToString(DataBinder.Eval(e.Item.DataItem, "Value_to_Pass")))

I use this line of code to show the details of a single artifact.


"Knowledge Sharing Matters!"
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Pass parameter to module itselfPass parameter to module itself


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