First of all sorry to put this in this thread.
Sir,
While working with WebShop I came across profile. As using profile it shows the particular users' record. From that point I want to insert image of user. For this I have given a fileupload control to user and they can upload their photo(if they wish).
Now to display image of logged in user shoul be displayed on every page (like orkut), for this I am using Repeater control on master page. But I am having problem in getting the image and also don't know what should I put in the ItemTemplate of Repeater so that it gets bound with the repeater.
Currently I am using the following code
Code:
<ItemTemplate >
<asp:Image ID ="Imageurl" runat ="server" ImageUrl='<%# Eval ("PropertyNames") %>' />
</ItemTemplate>
And in the code behind file
Code:
Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)
If Profile.ProfileCompleted = True Then
If Profile.Photo IsNot Nothing Then
Repeater1.Visible = True
Repeater1.DataSource = Profile.Photo
Repeater1.DataBind()
End If
End If
End Sub
Any suggestion in the direction is appreciated.
Thank you.