i have this code:
<a href='<%# Eval("url_img", "../uploads/images/{0}") %>' class='lightview' >
<asp:Image ID="Image1" runat="server"
ImageAlign="Middle" ImageUrl='<%#Eval("url_img", "~/uploads/images/{0}") %>' Height="50px"
Width="50px" /></a>
and i bind the images in codebehind but some cases dont have a photo so i need to remove the atribute class from the a href
foreach (GridViewRow row in GridView2.Rows)
{
if (row.RowType == DataControlRowType.DataRow)
{
Image img = (Image)row.FindControl("Image1");
if ((img != null) && (img.ImageUrl == ""))
{
im ...
Go to the complete details ...