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.0Unauthenticated users cannot see imagesUnauthenticated users cannot see images
Previous
 
Next
New Post
8/23/2006 3:02 PM
 

I am running DNN 4.3.4 on WinXP attached to an SQL 2000 database. I created a module that stores images and flash documents as blob data.

When the user is authenticated, the data is displayed as one might expect; however, an unauthenticated user cannot see the data. An unauthenticated user only sees the alternate text of the image tag.

Here is a code snipit from my module that shows how the image tag is created. This particular line of code came out of my ItemDataBound event for my DataList control.

String.Format("<img src={0} alt={1} border=0>", EditUrl("ItemID", ((DataItemInfo)e.Item.DataItem).ItemID.ToString(), "ImageViewer"), ((DataItemInfo)e.Item.DataItem).FileName);

For those VBers out there the single line above might look something like this to you.

Dim ItemSrc as String

Dim AlternateText as String

Dim ItemInfo as DataItemInfo

ItemInfo = CType(e.Item.DataItem, DataItemInfo)

ItemSrc = EditURL("ItemID", ItemInfo.ItemID.ToString(), "ImageViewer")

AlternateText = ItemInfo.FileName

"<img src=" & ItemSrc & " Alt=" & AlternateText & " border=0>"



The image viewer control simply performs the binarywrite of the byte buffer. So there is really nothing trick about my image handling. I have been using this method for displaying blob data for a long time, and never had any problems in my 1.x .NET environments. I am guessing that 2.x .NET environment does something a little different. So does anyone have a clue?

TIA,

John


Cheers!
John Valentine
http://www.webinnovationsystems.com
 
New Post
8/23/2006 4:45 PM
 

Actually, I created a regular user and the authenticated (non-administrative) user cannot see the images either. Any idea's?

Thanks!

John


Cheers!
John Valentine
http://www.webinnovationsystems.com
 
New Post
8/24/2006 4:19 PM
 

ok, let me see here, a non-administrative user doesn't see images, cannot properly use a dropdown menu (IE: the postback somehow misfires), cannot see text in a dnn:label control, and stored module settings are not reflected in an asp:DataList control.

The module works perfectly when the user is an administrator, host, or a member of the administrators group.

PLEASE Help Me!


Cheers!
John Valentine
http://www.webinnovationsystems.com
 
New Post
8/25/2006 7:47 PM
 

Ok, for anyone who was following this thread; thanks to the posts on some other threads, I was able to fix my problem.

I fould that setting the module caching time to 0 did the trick... Don't know why its now set to 60 but it used to have a default of 0. Anyway... That did it.

All I need to do now is figure out how to have it default to 0 when installing the PA and I am golden.

Special Thanks to John Mitchell for bringing this to my attention.


Cheers!
John Valentine
http://www.webinnovationsystems.com
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Unauthenticated users cannot see imagesUnauthenticated users cannot see images


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