Add Image Caption?

Thread is closed for posting
6 posts, 0 answers
  1. sbowman
    sbowman avatar
    18 posts
    Member since:
    Aug 2007

    Posted 16 Dec 2008 Link to this post

    I am using the Rad Upload to allow users on my website to upload images. Is there a way I can save captions with each image file?
  2. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 18 Dec 2008 Link to this post

    Hello sbowman,

    Do you by saying "captions" mean "thumbnails"? If yes RadUpload cannot save thumbnails of the uploaded images.

    Regards,
    Albert
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. kula
    kula avatar
    1 posts
    Member since:
    Aug 2006

    Posted 11 Jan 2009 Link to this post

    No! A caption is explanatory text to be displayed with an image.

    Typically (I have done this often with the Asp.Net upload control) there is a text box displayed along with the upload control. When the file is uploaded to the server, the text is saved to an xml file or to a db.
  5. Paul
    Admin
    Paul avatar
    4281 posts

    Posted 12 Jan 2009 Link to this post

    Hi kula,

    Please refer to our Additional Fields example for details on the matter.

    Regards,
    Paul
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  6. -DJ-
    -DJ- avatar
    263 posts
    Member since:
    Oct 2004

    Posted 17 Feb 2009 Link to this post


    Hi Paul,

    This is exactly what I was looking for. However, I cannot get it to work locally. Is the example outdated or am I missing something.
    I get error messages on the repeater:

    Compiler Error Message: BC30691: 'UploadedFile' is a type in 'UI' and cannot be used as an expression.
    this line:  Title:&nbsp;<%# ((Telerik.Web.UI.UploadedFile)Container.DataItem).GetFieldValue("Title")%><br />

    Regards,
    -DJ-




  7. -DJ-
    -DJ- avatar
    263 posts
    Member since:
    Oct 2004

    Posted 17 Feb 2009 Link to this post

    Hi again,

    The trick is to remove all instances of the text:  (Telerik.Web.UI.UploadedFile)

    Seems to work as expected once that's done.

    Regards,
    -DJ-
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017