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.0Edit link for module entries.Edit link for module entries.
Previous
 
Next
New Post
9/27/2006 5:59 AM
 
Hey forum-goers,

I'm close to a complete newb, module development-wise, so please bare with me :) I've followed a few tutorials and have started trying to create a simple calendar mod. I'm about to provide some back-story here. Those not interested, please skip to the last paragraph.

I've used Asp.net server controls to implement some simple calendar functionality on top of the "Widget" that is auto generated using the starter kit. Using the "dayRender" event, I have injected some content into the various calendar dates. What I would really like to do, is to create a link to any entries that happen to occupy specific dates. Just like the little pencil next to the announcements, in the announcements module. That's the type of link I'm going for :). I know a lot of modules use databinding and I've only recently become familiar with this concept. I'd prefer to create a link without it. Partially because I have no idea as to make a link to a single item in the database. But also because I cannot visualize how to do it with the code I've created.

So I suppose the general question is. Having created a module that contains certain item entries - how do I make a link so I land on the edit page for one of these items without using databinding. Can it not be done using only the ItemID or something similar?

Thanks in advance,

Gazoo
 
New Post
10/4/2006 8:06 AM
 
Hey people,

Another week and I'm still stumped on this annoying and in my head supposedly easy problem. As far as I've understood things - if I'm NOT using databinding (which I'm not) i need to reach the "edit" User control with the proper details such as ItemID and so forth...

Still haven't been able quite how to figure this out thou, so if anyone has help to offer, I'll be glad to take it...

Thanks again,

Gazoo
 
New Post
10/4/2006 10:39 AM
 

The link is actually a standard hyperlink, so however you are creating your entries, you could just add a hyperlink control with the EditUrl method call to give it the correct link.

DataBinding is only really used because normally those pencils are associated with data.


Scott McCulloch
Developer, F5 Networks
Owner, Ventrian DotNetNuke Modules
 
New Post
10/6/2006 4:00 AM
 
Hi,

Arg - the one time I actually do not copy/paste my reply to ensure its survival the goddamn forum of course f*cks up and eats it... Sigh...

Anyway - thanks a lot for the help. It looks much better now. A half way solution I found looked like this:

Globals.NavigateURL(TabId, "Edit", "mid/" + curWidget.ModuleId.ToString() + "/ItemID/" + curWidget.ItemId.ToString());

Not as good at the method you suggested. One more thing - It took me quite a while to find this one function - is there any website you could recommend regarding this and similar issues? Through my searches I found quite a few tutorials, but none of them were deep enough...

Thanks again...

Regards,

Gazoo
 
New Post
10/6/2006 9:46 AM
 

gazoo101 wrote
Hi,

Arg - the one time I actually do not copy/paste my reply to ensure its survival the goddamn forum of course f*cks up and eats it... Sigh...

Anyway - thanks a lot for the help. It looks much better now. A half way solution I found looked like this:

Globals.NavigateURL(TabId, "Edit", "mid/" + curWidget.ModuleId.ToString() + "/ItemID/" + curWidget.ItemId.ToString());

Not as good at the method you suggested. One more thing - It took me quite a while to find this one function - is there any website you could recommend regarding this and similar issues? Through my searches I found quite a few tutorials, but none of them were deep enough...

Thanks again...

Regards,

Gazoo

I would recommend using it like this:-

Globals.NavigateURL(TabId, "Edit", "mid=" + curWidget.ModuleId.ToString(), + "ItemID=" + curWidget.ItemId.ToString());

That should work when both "FriendlyUrls" are enabled or disabled.

As for information, the Module Developers Guide in the documentation zip might be a good start, as well as the books that are out there. (I heard the wrox one was good :))

So you would like to know more about navigation between controls in a module and the different options? Sounds like it would make a good blog entry.


Scott McCulloch
Developer, F5 Networks
Owner, Ventrian DotNetNuke Modules
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Edit link for module entries.Edit link for module entries.


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