bind a function to image source that embeded in repeater
===

i have a repeater that it has image inside itself.i wanna show different image base on ranking for example if ranking is 1 i show an image and if it is 2 i show the other.ranking is a field in dataset. but my function dose not work correctly  and i cant get correct  result.it only show first pic.what solution u suggest for this operation??/
thank alot .
its my code

    public string getimg()
         { SqlConnection con = new SqlConnection("data source=.;database=site;integrated security=true;");
         string sSQL = "Select username ,weight,point , Rank() over(order by point desc) as 'ranking' from karbar order by point desc";  
         SqlCommand cmd = new SqlCommand(sSQL, con);
         SqlDataAdapter adapt = new SqlDataAdapter(cmd);
         DataSet ds = new DataSet();
         adapt.Fill(ds);
         foreach (DataRow myRow in ds.Tables[0].Rows)
         {
             if (Convert.ToInt32(myRow["ranking"]) == 1)

             { return "price/con1.png"; }
             else return "price/con2.png";
         }
             
         }


and its html

      <div class="innerTitle">
                    <img style="width:55px;height:55px" alt=""  src="<%# getimg() %>" />     </div>
                      <div class="innerContent" style=" width: 391px; direction:rtl ">