open a new window with a dynamic url
Posted on 2005-05-02
someone please help me asap. i need to finish this project. i am making a datalist where it brings in a bunch of images which are then clickable. when an image is clicked, i want a new small window to open with the bigger image. i want the link to dynamically carry the id of the row where the image is stored. for example:
when abc.jpg is clicked, it opens "press_detail.aspx?ID=12". press_detail.aspx is a web form where it displays the big image and some additional information. i know that the following code is for html:
<A onclick="MyWindow=window.open('Press/LV-0405.aspx','MyWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=600,height=650,left=10,top=10'); return false;" href="#">
How can I do this dynamically behind the code just as the following:
<asp:ImageButton ID="EnlargedPressImage" Runat="server"></asp:ImageButton>
WHAT DO I DO HERE?
Some, please guide me in the right direction. maybe im even going to complete wrong way.
thanks a million.