title: How to change source image property from code behind
body: <p>I'm wondering how to change a color property of an image from code behind of same page. Below, I have html code for the image that I want to change to yellow if file is not contained in important announcements folder (this is checked in code behind). Here's the html of image:</p>
  
  <pre><code>&lt;li class="levelOne"&gt;&lt;a class="button notice buttonEight" href="#"&gt;
  &lt;img id="importantImg" src="&lt;%= Page.ResolveUrl("~/{0}/_res/_images/icon_notice.png",      
  PBS.Cms.Settings.PBSFolderName) %&gt;" /&gt;&lt;/a&gt;&lt;/li&gt;
  </code></pre>
  
  <p>Here's a snippet of the code behind for this page:</p>
  
  <pre><code>//validate folder is important announcements
  if (!cd.FolderName.Equals("Important Announcements"))
  {
  //string folderName = cd.FolderName.ToString();
  Response.Write("folder doesn't equal Important Announcements");
  }
  </code></pre>
  
  <p>Any help?</p>
  
  <p>Thanks!</p>
  
  <p>Jason</p>