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

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesHow to transfer parameters from View to EditHow to transfer parameters from View to Edit
Previous
 
Next
New Post
10/22/2018 3:42 AM
 
Dear Dnn Guru

I would like to transfer parameters from View control to Edit control, so I check the Dnn API to find the Response.Redirect(EditUrl()). I found the one of the overload patterns seems to be used for transfer the parameters. The method is EditUrl( string, string, Control Key, string[]). I organized the parameters to string[], the first and second strings are set to string.Empty, The Control Key is set to "Edit". Then the result is the parameters become to part of the Url. like the following physical path
D:\LocalWeb\Dotnetnuke\DNN_07.04.02_Install\dnndev\Payment\ctl\Edit\mid\2504\课时包\600.00 . Actually there is no such page can be display.
These parameters have not been transfer to Edit as requestable parameters.
Because there is no clear explanation for the Dnn API, so I am not sure if these EditUrl overload methods can be used for sending parameters from View control to Edit control? If not, what API method can do this job?


Best Regards


Jimmy
 
New Post
10/25/2018 3:48 PM
 
This is a really old but still very much valid tutorial on this topic:

http://adefwebserver.com/dotnetnukehe...

Just remember that the URL's that are produced now look much better. :)

Will Strohl

Upendo Ventures Upendo Ventures
DNN experts since 2003
Official provider of the Hotcakes Commerce Cloud and SLA support
 
New Post
11/1/2018 3:04 AM
 
Dear Will Strohl

Thank you very much for your answers. I read your linked file. I think these methods are only for url navigation, i.e. from one page jump to another page. not yet solve the data transfer from one page to another page with a Dnn formatted friendly Url navigation. I tried to use EditUrl(....) and NavigateUrl(.....) to put some parameters for transfer these data. These data were become to the part of the Url and at the tail of Url. Actually the web server and browser cannot identify what is the Url and what are the transferred parameters if Dnn cannot provide a method to separate the parameters and the Url. So that browser cannot display the parameters included Url. If use the "?" plus parameters to follow the Url, That goes back to the traditional non-friendly Url parameters transfer format. I am not sure if friendly Url navigation is only for the tabId, ModuleId ...in Dnn but not for the general Url parameters transfer. I can use the Cache to transfer the parameters between ascx controls within one module. This data transfer will not display on the browser url box. But I am not sure if this method can be used between different modules.

Best Regards

Jimmy
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesHow to transfer parameters from View to EditHow to transfer parameters from View to Edit


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