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...Administration ...Administration ...Add Page with some default parameterAdd Page with some default parameter
Previous
 
Next
New Post
11/22/2012 5:39 AM
 

I am adding page from Page Management section.Now what i need is that page should always have some  parameter with some default value

Like if i have a page MyPag.aspx I wanted it's link to be something like

Like http://localhost/dnntrainingportal/MyPag.aspx?myparam=1

or http://localhost/dnntrainingportal/MyPag.aspx/myparam/1

From where i can add parameter to my page?

 

 
New Post
11/22/2012 6:51 AM
 

Hi Kamran,

If your parameter is some static value, then you can add it in the page settings--->Advanced Settings-->Other Setting, edit the link url, see the below image:


NovaSoftware ---a professional outsourcing company in China .
* More than 6 years' offshore experience in DNN
* Successfully developed 30+ websites , 250+ DNN modules, 50+ sets of Skins/Containers.
* Demo Site:http://dotnetnuke.novasoftware.com/
 
New Post
11/22/2012 7:13 AM
 

Any other way then this? The pages are of the same portal

I am getting error he page isn't redirecting properly with your suggested change

 
New Post
11/22/2012 7:38 AM
 
You might not use the same page, otherwise you will fall into a loop of page-redirection, e.g. you call a page from you menu and redirect it with the parameter to another page, which is not included in the menu.

If you need the parameter within a module consider to implement some default like

private string MyParam { get; set; }

protected void Page_Load(object sender, EventArgs e)
{
...
this.MyParam = (Request.Params["MyParam"] == null ? "DefaultValue" : Convert.ToString(Request.Params["MyParam"]));
...
}

Best wishes
Michael

Michael Tobisch
DNN★MVP

dnn-Connect.org - The most vibrant community around the DNN-platform
 
New Post
11/22/2012 7:46 AM
 

Thanks

I have redirected to the page from one other test page and tested out my functionality

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Add Page with some default parameterAdd Page with some default parameter


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