Javascript
<script language="javascript" type="text/javascript" >
function openPopUp(sPicURL)
{
var win=window.open(sPicURL, "","menubar=no,scrollbar=yes,resizable=no,width=700,height=600");
return false;
}
function openImagePopUp(sPicURL)
{
window.open("../common/contentImagePopup.htm?"+sPicURL, "","width=250px,height=180px,top=360px,left=180px,resizable=no,menubar=no");
}
</script>
Cs code
imgPhoto.Attributes.Add("onclick", "javascript:openImagePopUp('" + strPath + "');");