Click here to Skip to main content
15,891,607 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
XML
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="Id"
     DataSourceID="LinqDataSource1">
     <Columns>
         <asp:TemplateField>
             <ItemTemplate>
                 <div class="ItemTemplat_Full">
                 <div class="ItemTemplat_Image">
                 <img  src="<%# Eval() %>"/>
                 </div>



                 </div>
             </ItemTemplate>
         </asp:TemplateField>
     </Columns>
 </asp:GridView>




i want Check A Condition.If Condition True Then Eval Execute!!!
please Help me Thanks
Posted
Updated 25-Aug-12 19:58pm
v2

 
Share this answer
 
v2
Using conditionals in data binding expressions[^] should help you out.

As you will notice, the version of ASP.Net you are using will make a difference.
ASP.Net 2.0 has an IIF statememnt while 4.0 support conditional evals.
 
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