Cant get ThumbUrl((String)(DataBinder.Eval(Container.DataItem,"Path"))) in Thumblist.ascx to work!

Last post 06-23-2009, 2:44 AM by Bloodcarver. 3 replies.
Sort Posts: Previous Next
  •  06-17-2009, 10:04 AM 53214

    Cant get ThumbUrl((String)(DataBinder.Eval(Container.DataItem,"Path"))) in Thumblist.ascx to work!

    The ThumbUrl((String)(DataBinder.Eval(Container.DataItem,"Path"))) in Thumblist.ascx is supposed to do thumbnails, right.
     
    I cant make it do that... Is the path-value especially important when i am storing my files in MSSQL.
     
    I have tried with a lot of variations, but with no success. Is the ThumbUrl temp-writing the thumbs somewhere i dont know of so the problem can be file-permissions?
     
    Please explain to me how it works.
     
    Regards
    Håkan Gustafsson
    Vikab
    SWEDEN
  •  06-17-2009, 2:23 PM 53223 in reply to 53214

    Re: Cant get ThumbUrl((String)(DataBinder.Eval(Container.DataItem,"Path"))) in Thumblist.ascx to work!

    ThumbUrl is responsible for rendering a temp thumbnai into browser.
     
    Can you explain what you are trying to achieve?
     
    If you want to save files into MSSQL, please check the following example:
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  06-18-2009, 1:34 AM 53241 in reply to 53223

    Re: Cant get ThumbUrl((String)(DataBinder.Eval(Container.DataItem,"Path"))) in Thumblist.ascx to work!

    Hi Adam,
     
    Im not trying to do anything fancy at all. Im just trying to populate the file and gallery folder and file-lists.
    I did this in version 5.3 and all was fine, but in 6.4 the gallery tries to create thumbnails and fails totally.
     
    My theory is that when i am overriding the GetFileItems i dont get the path-parameter on the file-items correct.
     
    It seems that ThumbUrl((String)(DataBinder.Eval(Container.DataItem,"Path"))) in Thumblist.ascx uses just that parameter.
     
    Can you please explain and better even give example on the difference between the url and the path-parameters.
     
    Best regards
    Håkan
     
     
  •  06-23-2009, 2:44 AM 53381 in reply to 53241

    Re: Cant get ThumbUrl((String)(DataBinder.Eval(Container.DataItem,"Path"))) in Thumblist.ascx to work!

    Thanks Ken, you solved my problem!
     
    The problem was in the GetFileData, but the error was obscured so it was not visible to me.
     
    Of course the filedata must be delivered or else the thumnailgenerator cant work.
     
     
View as RSS news feed in XML