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:
Hi!
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!
Posted
Updated 24-Jul-11 1:54am
v3
Comments
Sergey Alexandrovich Kryukov 24-Jul-11 14:10pm    
What is "default" photo?
--SA

1 solution

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

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