title: Attributes.add and onmouseover
body: <p>I have a databound gridview that use to display pictures I fetch from a server.  Im trying to set it up to create a flyout when I mouse over one of the images that enlarges the images.  I have encountered a problem though when it comes to adding the attribute to the databound row.I currently have the code</p>
  
  <pre><code>e.Row.Cells(2).Attributes.Add("onmouseover", "flyoutimg.ImageUrl=""" + imgstr + """;")
  </code></pre>
  
  <p>However, this line of code causes me to have a problem in that the imgstr (which contains the url for the image on the server) does not get passed through into the javascript/aspx of the page.  When I boot up the page I can try to mouse over things but it simpally does not work.  </p>
  
  <p>Ive tried to put the flyout.ImageUrl in its own string and pass that into the attribute but that does not work either.  The only research I could find on this was from two years ago stating that the Attributes.Add encoded apostrophes but not quotation marks.  </p>
  
  <p>Any suggestions?</p>
  
  <pre><code>imgstr = dsMyName.Tables(0).Rows(0).Item("Photo").ToString
  </code></pre>
  
  <p>Im pulling imgstr from a server and doing a .ToString which I believe is redundant.</p>