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

HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...Passing a value(parameter) to module/packagePassing a value(parameter) to module/package
Previous
 
Next
New Post
3/17/2011 7:23 PM
 
Hi
I have created my own module and now i want to pass a value to it (and based on the value going to be passed i need to do some actions).
In basic aspx we can do this as Request.QueryString.

please let me know where i can specify the parameter.

Thanks
 
New Post
3/18/2011 3:23 PM
 
You can use DotNetNuke.Common.Globals.NavigateUrl method. This method generate URL and have overload that allow you specify additional parameters.

Ex. DotNetNuke.Common.Globals.NavigateUrl(TabID, String.Empty, "param1=param2")

I hope is what you look for.

Team Leader
CodingStaff Development Company
Check our dnn modules and dotnetnuke skins to see where you can start.
 
New Post
3/19/2011 11:40 AM
 
Thanks Tanya, but let me explain more what i need as your solusion seems wont help me.

in dnn site i have insert a page and there i have embeded my own module(lets say survey modlue)  , in that module(survey modlue) i need to read an xml file and read details by passing an id i.e 1001 (please see below), the same module (survey modlue) i need to embed in to another page, but i should read some other section of xml (i.e 1002). my question is how can i pass config id (1001/1002) to module based on the page that i insert.

Thanks again

<Config ID="1001">
    <URL>http://xxxxxx.com</URL>
    <UserName>xxx123</UserName>
    <Password>321xxx</Password>
    <PortalID>3</PortalID>
 
New Post
3/21/2011 5:43 AM
 
you might store the module ID in your module settings and use it, when creating the url.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
3/21/2011 3:01 PM
 
Thanks Sebastian
your suggestion can be used to certain extend, but if i use the same module to some other page still the same 'moduleid' will be there.
i want to have a unique identification.

Thanks

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...Passing a value(parameter) to module/packagePassing a value(parameter) to module/package


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