I am using Datalist which is given below:
<asp:DataList ID="dList" runat="server" RepeatColumns="4" RepeatDirection="Horizontal" RepeatLayout="Table" DataKeyField="PId"
Width="850px" align="center" >
<ItemTemplate>
<table width="210px">
<tr>
<td align="left">
<a href='Photos.aspx?fn=<%#Eval("FolderName")%>'
<img src="images/MainFolderImages/<%#Eval("Image")%>" height="120px" width="200px" alt="" ></img>
</a>
</td>
</tr>
</table>
</ItemTemplate>
</asp:DataList>
My requirement is
if(SubcatId==0)
{
<a href='Photos.aspx?fn=<%#Eval("FolderName")%>'
}
else
{
href='SubCategory2.aspx?id=<%#Eval("CId")%>'
}
How i will do it please suggest me.