i thought this is the right way?
<asp:Image Visible='<%# (Eval("ShareImageName").ToString()== null) || (Eval("ShareImageName").ToString() == String.Empty) ? false :true %>'
ID="Image3" runat="server" Width="100px" ImageUrl='<%# Eval("../UserImage/") %>'
GenerateEmptyAlternateText="True" EnableViewState="False" />
but if so it gives this error
Server Error in '/' Application.
Value cannot be null.
Parameter name: propName
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ArgumentNullException: Value cannot be null.
Parameter name: propName
Source Error:
Line 759: </asp:Panel>
Line 760: </asp:Panel>
Line 761: <asp:Image Visible='<%# (Eval("ShareImageName").ToString()== null) || (Eval("ShareImageName").ToString() == String.Empty) ? false :true %>'
Line 762:ID="Image3" runat="server" Width="100px" ImageUrl='<%# Eval("../UserImage/") %>'
Line 763:GenerateEmptyAlternateText="True" EnableViewState="False" />