eswar rao

eswar rao

  • 1.6k
  • 98
  • 19.1k

how to add below function to image in asp.net

Dec 21 2015 5:56 AM
hi i am developed a image gallery in asp.net ..in that having hyperlink so i am write below code for that in header part..now i would like write for asp image1 ..so how  to change the script in asp.net  
 
my script: 
 
<script type="text/javascript" charset="utf-8">
$(document).ready(function () {
$("a[rel^='prettyPhoto']").prettyPhoto();
});
</script> 
 
in aspx file;;
<a href='<%# Eval("Name","admin/galimg/{0}")%>' rel="prettyPhoto[pp_gal]" title="Gallery">
<img src='<%# Eval("Name","admin/galimg/{0}")%>' class="img_gallery" alt='<%# Eval("Name") %>' />
</a>
 
<asp:Image ID="Image1" runat="server" class="img_gallery"  ImageUrl='<%# Eval("imagepath") %>' />
 

Answers (1)