ImageButton and Popup Problem

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>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top