c# - How I can zoom an image in GridView with datatype on SQL in binary format (image datatype)? -


i have saved image in sql database in binary format. retrieved image dynamically on aspx page gridview.

now want give zoom effect on event click or mouseover in image field.

any suggestions?

i'm assuming the image binary being rendered inside img tag?

if can add javascript onclick event changes size of image using css e.g.

    <img id="imgcancel" src="images/cancel.gif" onclick="zoom()" />      <script type="text/javascript">          function zoom() {             var imgcancel = document.getelementbyid('imgcancel');             imgcancel.style.height = '250px';         }      </script> 

this increase size of thumbnail in gridview though, might not achieve intended effect (you zooming image quality stay same).

a better solution have popup appear on hover/onclick , use webservice retrieve higher resolution picture server.


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -