L
LacOniC
I use an ImageButton Field in DetailsView. I can't open photo (to view in
original size) in a new window with below code. No error, i click and do
nothing. Any advice?
<ItemTemplate>
<asp:ImageButton ID="imbFotograf" runat="server" ImageUrl='<%#
"Fotograf/Portre/" + Eval("ID") + ".jpg" %>' Height="100px" Width="100px"
OnClientClick='<%# Eval("ID",
"JavaScript:window.open("+(char)39+(Server.MapPath(@"Fotograf\Portre\" +
"{0}" + ".jpg"))+(char)39+", null, "+(char)39+"width=500, height=475,
menubar=yes, scrollbars=no, resizable=no"+(char)39+"); return false;") %>'
/>
</ItemTemplate>
original size) in a new window with below code. No error, i click and do
nothing. Any advice?
<ItemTemplate>
<asp:ImageButton ID="imbFotograf" runat="server" ImageUrl='<%#
"Fotograf/Portre/" + Eval("ID") + ".jpg" %>' Height="100px" Width="100px"
OnClientClick='<%# Eval("ID",
"JavaScript:window.open("+(char)39+(Server.MapPath(@"Fotograf\Portre\" +
"{0}" + ".jpg"))+(char)39+", null, "+(char)39+"width=500, height=475,
menubar=yes, scrollbars=no, resizable=no"+(char)39+"); return false;") %>'
/>
</ItemTemplate>