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 ExtensionsModulesModulesIssues with URLControlIssues with URLControl
Previous
 
Next
New Post
8/16/2010 9:00 PM
 
I suggest checking out, how url control is used in bundled modules like Links, Documents and Form & List.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
8/17/2010 10:45 AM
 
But this line needs to be wrapped in a Postback check:

// do this in the page load (or a method called from the page load
if (Page.IsPostback == false){
	ctlImageUrl.Url = 
null;  // this is where you initially load the file to the control - everything else should happen naturally after
}

Will Strohl

Upendo Ventures Upendo Ventures
DNN experts since 2003
Official provider of the Hotcakes Commerce Cloud and SLA support
 
New Post
9/12/2010 5:59 AM
 
Hey All,

Thanks for the help, but I solved my problem in a different way.  The saving of the data was working correctly, and hence the usage on the page in the module was working fine, it was just the updating screen that had the issues, and when the updating screen was using the absolute URL it was fine.

So, to fix my issue, I saved the absolute URL for the image / link to the database.  What this ment was that the complete url was then being returned, not a file ID or tab ID that needed to be parsed to get the actual link / image to be used, which was a performance improvement.  Then, when I was editing the object in the edit screen, it was using an absolute path, which was the one part that was working fine.

Hope this helps someone,
Lee
 
New Post
9/12/2010 12:26 PM
 
Glad you found a way for it to work.  Just know though, that your method may or may not be compatible with future versions of DNN (hard to say), and if you ever change how the URLProvider works, or add your own/3rd party, your module will likely encounter problems.  Just a warning.  ;)

Will Strohl

Upendo Ventures Upendo Ventures
DNN experts since 2003
Official provider of the Hotcakes Commerce Cloud and SLA support
 
New Post
9/13/2010 6:31 PM
 
Hey Will, Not sure I understand why. I would be using the control the same way as I would if I were to put an external URL in it, and I parse it the same way as I would if I were to use the file ID in storage. I have just switched around the order that I do things. I understand that I would be under the usual issues that come from upgrading a framework or platform, but not sure how my implementation makes me more susceptible to those changes. If you could let me know that would be great so that I make sure I mitigate those issues and risks as much as I can. Thanks Lee
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesIssues with URLControlIssues with URLControl


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