attipa
asked on
open a new window with a dynamic url
hello,
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:
ID: 12
SmallImage: abc.jpg
BigImage: abc_big.jpg
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.o pen('Press /LV-0405.a spx','MyWi ndow','too lbar=no,lo cation=no, directorie s=no,statu s=no,menub ar=no,scro llbars=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:
aspx file
---------------------
<asp:ImageButton ID="EnlargedPressImage" Runat="server"></asp:Image Button>
aspx.vb file
----------------------
???????????
WHAT DO I DO HERE?
Some, please guide me in the right direction. maybe im even going to complete wrong way.
thanks a million.
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:
ID: 12
SmallImage: abc.jpg
BigImage: abc_big.jpg
when abc.jpg is clicked, it opens "press_detail.aspx?ID=12".
<A onclick="MyWindow=window.o
How can I do this dynamically behind the code just as the following:
aspx file
---------------------
<asp:ImageButton ID="EnlargedPressImage" Runat="server"></asp:Image
aspx.vb file
----------------------
???????????
WHAT DO I DO HERE?
Some, please guide me in the right direction. maybe im even going to complete wrong way.
thanks a million.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
when you say.....
myPicture.Attributes.add("
window.open('Press/LV-0405
window.open('Press/press_d