Register   Login
     
  Latest Posts  
RE: how to use news article source with dnn source to change and compile whole source code?
by nosa on 7/04/2009 9:02 AM
Dark background skin
by craig on 7/04/2009 5:55 AM
RE: Trial peroid
by glenwin on 7/04/2009 4:45 AM
RE: Different skin for View Item?
by cchufook on 7/03/2009 10:29 PM
RE: Different skin for View Item?
by swebster on 7/03/2009 10:10 PM
Different skin for View Item?
by cchufook on 7/03/2009 8:13 PM
RE: Human friendly URL not working--Urgent
by Madz on 7/03/2009 11:26 AM
RE: Friendly URL and DNN4.8.0 ?
by Madz on 7/03/2009 11:25 AM
Human friendly URL not working--Urgent
by Madz on 7/03/2009 11:11 AM
RE: Google Sitemap Revisited
by georgelew on 7/03/2009 4:26 AM
  Forums  
Subject: Linkclick.aspx question
Prev Next
You are not authorized to post a reply.

Author Messages
Steve TopilnyckyUser is Offline
Gold Membership
Nuke Wiz
Nuke Wiz
Posts:180


9/20/2007 10:18 AM  

I have page with the document module installed. Here I have our monthly newsletters posted.  I am using Nukelet to directly access the database to determine when the lasted issue is posted so it can be displayed on the home page, something like this:

The Detachment newsletters for June 2007 and August 2007 are now available for viewing.

Don't forget to check out our complete list of available Detachment Newsletters

I have the Detachment Newsletters hyperlinked to the documents module page, that is not a problem, but I want to hyperlink the actual newsletters. Now here is the problem, I do not know how they came up with the Fileticket part of the URL. 

This is the link for the August 2007 newsletter:

http://dnn.mclwestchester.org/LinkClick.aspx?fileticket=AzXH6Ruz%2fP0%3d&tabid=84&mid=416

The database has this:

Item ID: 16 
ModuleID: 416
CreatedDate:  8/14/2007 6:31:58 PM
URL: FileID=904
Title:  August 2007
Category:
CreatedByUserId:  3
OwnedByUserId: 3
ModifiedByUserId: 3 8/14/2007 6:33:04 PM
SortOrderIndex:  0
Description: 

"PDF

So my question is how do I get the Fileticket number from the information above. It appears to be encoded in some fashion. 

I'm using .NET VB..

Any and all help would be appreciated.

Note:(This site is still under development be nearly complete, once the complete the DNN portion of the URL will be changed to WWW and the old classic ASP site will be shut down).


--
Regards,
Steve Topilnycky
Top Cat Computing | Marine Corps League - Westchester County Detachment | ArGoStuff | Young Marines of Westchester
IowaComputerGurusUser is Offline
Registered Users
Nuke Super Newbie
Nuke Super Newbie
Posts:15

9/21/2007 8:17 AM  
I don't have the code for the module infront of me. (I'm a member of the documents module team) but I believe that we are using the Encrypt methods for URL parameters provided by the DotNetNuke.Common.Globals class.

Mitchel Sellers
MCITP, MCPD, MCTS

Director of Development
IowaComputerGurus Inc.

http://www.mitchelsellers.com
Steve TopilnyckyUser is Offline
Gold Membership
Nuke Wiz
Nuke Wiz
Posts:180


9/21/2007 3:19 PM  

Mitchel,

Thanks for the response.

Do you recall what fields you use to create the ticket value.. My coding skills in .NET are minimal but if you can point me in the right direction, I may be able to figure it out. I am creating this in VS 2003 outside of DNN. Once I get it working I use the Nukelete Module to run the code.

This is what I got so far. The URL that I generate is obvously incorrect in this sample:

[EDITED: 21 SEPT 07]

Due to the forum having trouble displaying code I have posted the code to the attached ZIP file...


Attachment: code.zip


--
Regards,
Steve Topilnycky
Top Cat Computing | Marine Corps League - Westchester County Detachment | ArGoStuff | Young Marines of Westchester
You are not authorized to post a reply.
Forums > General > DotNetNuke Questions > Linkclick.aspx question



ActiveForums 3.7