Hi,
I'm using PostAttachments.GetPostAttachtment(23).Url to get the url of a file I uploaded in the mediagallery. The problem is that they don't know the ID but they do know the Friendly Name. So I like to use something like PostAttachments.GetPostAttachtment(FRIENDLY-NAME).Url. Does someone knows a good conversion from the integer PostID to the string FRIENDLY-NAME?
Thanks!
Roel
I get the FriendlyFilename by
Dim objFriendlyFN As Object = PostAttachments.GetPostAttachtment(postID).FriendlyFileName
and fill a Dropdownlist with
DropDownList1.Items.Add(objFriendlyFN.ToString)
I set the postID hardcoded by eg Dim PostID As Integer = 26 to test and it works! Now I like to get all the files uploaded in a mediagroup. How can I make this work?
Thanks for the help!
Querying the databse solved my problem!
Copyright© 2008 Telligent Systems Inc. All rights reserved CommunityServer.com • Telligent.com