Hello
i have a problem and i don't find any solution,
In page load i use it :
and on itemDatabound
And i get always First Record, the count is ok, but the picture is always the same !
thanks
Olivier
i have a problem and i don't find any solution,
In page load i use it :
if (!Page.IsPostBack) { List<affaires> oAff = this.DbContext.Bien_GetPhoto<affaires>("B12546" ,2).ToList(); this.RadRotator1.DataSource = oAff; this.RadRotator1.DataBind();}and on itemDatabound
protected void RadRotator_ItemDataBound(object sender, RadRotatorEventArgs e) { affaires oBoPhoto = (affaires)e.Item.DataItem; string cPhoto = "photo/" + oBoPhoto.photo.Trim().ToString().Replace("\\", "/"); if (File.Exists(Server.MapPath(cPhoto))) { ((Image)e.Item.FindControl("photo_mini")).ImageUrl = cPhoto; ((TextBox)e.Item.FindControl("txt_img")).Text = cPhoto; } else { ((Image)e.Item.FindControl("photo_mini")).ImageUrl ="~/images/photoempty_v.jpg"; ((TextBox)e.Item.FindControl("txt_img")).Text = cPhoto; } }And i get always First Record, the count is ok, but the picture is always the same !
thanks
Olivier