This is a migrated thread and some comments may be shown as answers.

Add Image Caption?

5 Answers 143 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
sbowman
Top achievements
Rank 1
sbowman asked on 16 Dec 2008, 08:25 PM
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?

5 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 18 Dec 2008, 03:54 PM
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.
0
kula
Top achievements
Rank 2
answered on 12 Jan 2009, 05:44 AM
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.
0
Paul
Telerik team
answered on 12 Jan 2009, 09:24 AM
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.
0
-DJ-
Top achievements
Rank 1
answered on 17 Feb 2009, 05:10 PM

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-




0
-DJ-
Top achievements
Rank 1
answered on 17 Feb 2009, 08:08 PM
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-
Tags
Upload (Obsolete)
Asked by
sbowman
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
kula
Top achievements
Rank 2
Paul
Telerik team
-DJ-
Top achievements
Rank 1
Share this question
or