Image to load in larger popup

Ask a Question related to ASP.NET Data Grid Control, Design and Development.

  1. #1

    Default Image to load in larger popup

    Hi guys,

    just wondering if anyone can help me. I have a datagrid control that
    pulls images into a template column using the following code

    <asp:TemplateColumn HeaderText="Image">
    <ItemTemplate>
    <asp:image ImageUrl='<%# FormatURL(DataBinder.Eval(Container.DataItem,
    "product_image")) %>' Width="90" Height="70" Runat=server ID="Image1"/>
    </ItemTemplate>
    </asp:TemplateColumn>

    FormatURL - sets the path of the image.
    I need to create some code that allows me to open a popup window when i
    click on the image and to display a larger version of the image.

    Im not sure how to go about this ??? any help or ideas appreciated.

    thanks in advance

    C

    csgraham74 Guest

  2. Similar Questions and Discussions

    1. image popup
      I could us some insight in the following problem I'm having. I want to add a picture to a link that opens in a seperate window while the page...
    2. popup image
      I can dynamically link a larger image to a thumbnail by the 'open browser window' behaviour .... but the size of the pop up window has to be...
    3. Thumbnail image in Flash to larger image in new window?
      I have a series of thumbnail images in Flash and I want the user to be able to click on the thumbnail and get a larger photo. I know how to make the...
    4. Page load very slow with popup navigation
      We are using Flash MX and developed popup navigation. This has slowed the page load to 10 seconds over a T1 line with IE 5.5/Win2000. The unusual...
    5. Displaying Larger Image On Rollover
      Hi Steve, You could use multiple disjointed rollovers. Since rollover slices don't have to be on top of each other or even adjacent, and one...
  3. #2

    Default Re: Image to load in larger popup

    Add a client side onclick event for the image (c# syntax):

    Image1.Attributes["onclick"]="showModalDialog('zoom.aspx?url='+this.src,'', '
    ');

    zoom.aspx is a web form you need to make to get the enlarged image by
    supplied url parameter.

    Eliyahu

    "csgraham74" <csgraham74@hotmail.com> wrote in message
    news:1116778056.579361.283430@g43g2000cwa.googlegr oups.com...
    > Hi guys,
    >
    > just wondering if anyone can help me. I have a datagrid control that
    > pulls images into a template column using the following code
    >
    > <asp:TemplateColumn HeaderText="Image">
    > <ItemTemplate>
    > <asp:image ImageUrl='<%# FormatURL(DataBinder.Eval(Container.DataItem,
    > "product_image")) %>' Width="90" Height="70" Runat=server ID="Image1"/>
    > </ItemTemplate>
    > </asp:TemplateColumn>
    >
    > FormatURL - sets the path of the image.
    > I need to create some code that allows me to open a popup window when i
    > click on the image and to display a larger version of the image.
    >
    > Im not sure how to go about this ??? any help or ideas appreciated.
    >
    > thanks in advance
    >
    > C
    >

    Eliyahu Goldin Guest

  4. #3

    Default Re: Image to load in larger popup

    thanks for your help but are you sure this will work when my image is
    in the datagrid ?????

    i thought this would only work if my image was on the form.

    thanks again

    csgraham74 Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139