Click here to Skip to main content
15,905,238 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
I'm working on a social networking web site now.
I want to know how to show a default photo for all members which will appear in their respective profiles until the members upload their own photo.

Thanks in advance!
Updated 24-Jul-11 1:54am
Sergey Alexandrovich Kryukov 24-Jul-11 14:10pm    
What is "default" photo?

1 solution

Create a default Image for Image-less members, that's all.
<asp:image id="ImgMember" runat="server" imageurl="<%# (String.IsNullOrEmpty(Eval("MemberImage").ToString()) ? Eval("MemberImage"):"~/default.jpg") %>" />
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900