ImageButton and Popup Problem

Discussion in 'ASP .Net' started by LacOniC, Jun 13, 2006.

  1. LacOniC

    LacOniC Guest

    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>
     
    LacOniC, Jun 13, 2006
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?Sm9obiBXYWxrZXI=?=

    Popup Window Popup Timing

    =?Utf-8?B?Sm9obiBXYWxrZXI=?=, Nov 4, 2005, in forum: ASP .Net
    Replies:
    3
    Views:
    883
    =?Utf-8?B?Sm9obiBXYWxrZXI=?=
    Nov 4, 2005
  2. dapkniht
    Replies:
    1
    Views:
    1,389
    Eliyahu Goldin
    Mar 8, 2006
  3. Rajesh
    Replies:
    0
    Views:
    625
    Rajesh
    Jul 31, 2007
  4. Urs Gubler
    Replies:
    0
    Views:
    172
    Urs Gubler
    Jul 2, 2003
  5. Jens Peter Hansen
    Replies:
    7
    Views:
    594
    Randy Webb
    Jun 19, 2004
Loading...

Share This Page