Register   Login
     
  Latest Posts  
Catcha doesnt seem to work
by chaloum on 3/20/2010 8:16 PM
RE: Recently created articles are not shown in list
by atriage on 3/20/2010 10:15 AM
RE: Recently created articles are not shown in list
by spirit on 3/20/2010 10:08 AM
RE: Introducing the most powerful News Slider for Ventrian News Articles
by jhoelz on 3/19/2010 9:29 PM
Rich Snippets for Review, Ratings etc!
by georgelew on 3/19/2010 7:49 PM
Recently created articles are not shown in list
by atriage on 3/19/2010 11:18 AM
RE: News Articles Tokens
by spirit on 3/19/2010 10:43 AM
Author post count and link in listing.item.html
by mattbunce on 3/19/2010 10:18 AM
RE: News Article Detail and Lightbox
by spirit on 3/19/2010 10:12 AM
RE: News Article Detail and Lightbox
by ray-isc on 3/19/2010 9:49 AM
  Forums  
Subject: Linkclick.aspx question
Prev Next
You are not authorized to post a reply.

Author Messages
Steve TopilnyckyUser is Offline
Gold Membership
Ventrian Wiz
Ventrian 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
Silver Membership
Ventrian Super Newbie
Ventrian Super Newbie
Posts:18

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
Ventrian Wiz
Ventrian 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
John L.User is Offline
Gold Membership
Ventrian Addict
Ventrian Addict
Posts:71


12/18/2009 7:43 AM  
Steve, did you ever get this figured out. I have a situation where I need to use this for secure documents and I was using filetick=[fileid] and that worked until I got to fileid of 1000. Everything above 1000 doesn't work with that method so I need to convert the fileid to the appropriate fileticket value.

If anyone else has any insight to this I would love to hear from them as well.
You are not authorized to post a reply.
Forums > General > DotNetNuke Questions > Linkclick.aspx question



ActiveForums 3.7