Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ImageButton and Popup Problem

Reply
Thread Tools

ImageButton and Popup Problem

 
 
LacOniC
Guest
Posts: n/a
 
      06-13-2006
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>


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Watir Javascript popup handler: How to handle the popup dialog? Rajesh Ruby 0 07-31-2007 04:36 AM
ASP.NET JavaScript Popup, No Popup Using Back Button dapkniht ASP .Net 1 03-08-2006 08:49 AM
Popup Window Popup Timing =?Utf-8?B?Sm9obiBXYWxrZXI=?= ASP .Net 3 11-04-2005 07:33 PM
Main > Popup > Popup > Close popup AND new URL in main? Jens Peter Hansen Javascript 7 06-19-2004 08:56 PM
trigger event on opener from popup when closing it or run opener script from popup Urs Gubler Javascript 0 07-02-2003 02:08 PM



Advertisments