Click here to Skip to main content
15,991,071 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi everyone,

I am doing an album Task where I need to show the images from DB.

Suppose if I would get the no image I have to show a default image.

Can i do this using "DefaultIfEmpty"?
Posted
Updated 30-Nov-10 23:21pm
v2
Comments
Dalek Dave 1-Dec-10 5:22am    
Edited for Readability.

1 solution

Yes, but why not use a Case statement?
 
Share this answer
 
Comments
hemantwithu 1-Dec-10 5:27am    
Does this answer has any thing related to this?
Sandeep Mewara 1-Dec-10 5:56am    
@OP: Well, he is just suggesting that you can use a switch-case to check if any images or not and based on 'no image' use the default construct of it to display the default image.

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