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

loading images in rotator from folder where image path is in sqlserver

2 Answers 113 Views
Rotator
This is a migrated thread and some comments may be shown as answers.
saratchand
Top achievements
Rank 2
saratchand asked on 18 Nov 2010, 11:35 AM
Hi,
  I have a problem regarding the retrieving latest 10 images into rad rotator from folder by using the image path stored in sql server.
For this i placed the asp:image tag in item template of radrotator and assigned imageurl to handler.ascx file. but i'm not sure about passing "id" from image url to handler.ascx file.
here, in handler.ascx file i retrieved the image path's from sql server db.
Help me from this problem...

2 Answers, 1 is accepted

Sort by
0
Terfa
Top achievements
Rank 1
answered on 19 Nov 2010, 12:33 PM
Why don't you try hooking up the Rotator directly to the database using an sqldatasource..., you can then assign the picture path to the image control using

ImageUrl = '<%# Eval("PicturePath") %>'
0
saratchand
Top achievements
Rank 2
answered on 19 Nov 2010, 01:27 PM
Hi terfa,
what u said is correct thank u very much for responding to my post
 
I have changed the code and placed as another post ,if you know about this post please reply me.

 check this post "
The server tag is not well formed


or this url "http://www.telerik.com/community/forums/aspnet-ajax/rotator/the-server-tag-is-not-well-formed.aspx"

help me out of this
Tags
Rotator
Asked by
saratchand
Top achievements
Rank 2
Answers by
Terfa
Top achievements
Rank 1
saratchand
Top achievements
Rank 2
Share this question
or