| 
                                                                        
                                                                         
                                                                            
                                                                                v.tankaria-yahoo
                                                                            - 
                                                                                3/31/2011 5:04:37 AM
                                                                            
                                                                         
                                                                         
                                                                            
                                                                        
                                                                        
                                                                         
                                                                        
                                                                        
                                                                        
                                                                        
                                                                        
                                                                         
                                                                        
                                                                            How to check the Gender
                                                                        
                                                                            <%# IfEmpty(Eval("TeaserImage")," ",
  "<div class='newsImage'>"+ GetImage("TeaserImage",140,114) +"</div>") %>
  In the above code  where the condition evaluates i have blank output  . if it has a image it shows image 
  But  instead of blank i want to check if its gender is male or female and show respected default image for male or female 
  here we have IfEmpty to check its empty or not .. how to check what is evaluted 
  (Eval("Gender")=="Male")?"<img src='http://192.168.4.10/iisroot/KenticoLiveServer/images/mail.jpg'>","<img src='http://192.168.4.10/iisroot/KenticoLiveServer/images/femail.jpg'>"
                                                                         
                                                                        
                                                                            
                                                                         
                                                                        
                                                                         
                                                                        
                                                                            
                                                                            
                                                                            
                                                                            
                                                                            
                                                                         
                                                                        
                                                                            
                                                                            
                                                                            
                                                                            
                                                                         
                                                                        
                                                                         
                                                                     |