title: ASP.Net Change ImageButton.ImageUrl on mouseOver
body: <p>I am learning ASP.Net. I have a dynamically created ImageButton that I would like to change the ImageURL for when the user hovers over the control. I have tried this but it does not work: </p>
  
  <pre><code> imgStars.Attributes.Add("onmouseover", "this.src= '~/Images/4Stars.png'")
  </code></pre>
  
  <p>If I set the imgStars.ImageURL in the codebehind to ~/Images/4Stars.png it works. But it does not work in javascript.</p>
  
  <p>Please help. I have tried searching for my answer for hours, but I do not have a clue what to do. </p>