473,725 Members | 2,118 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Opening an enlarged image in new browser

parshupooja
159 New Member
Hello,

I am using ASp.NEt C# and javascript
I have a Datalist control on my page which has3 columns name , image and description. i have around 40 items in it.
I want user to click on Image to open an enlarged Image. Enlarged Image path is not in database. Images are saved in diffrent folder but exactly with the same name as small image in datalist.

I have written this function
Expand|Select|Wrap|Line Numbers
  1. function Enlarge()
  2. {    
  3.     window.open("Poster/"+document.getElementById("<%=Label1.ClientID%>").innerText+ "/Enlarged/"+"12345abcd.jpg","Enlarged", "scrollbars=yes,width=440,height=650,status=no,toolbar=no,menubar=no,location=no");
  4. }
  5.  
I am calling this function onclick of Image and it works for 12345abcd.jpg
I want to make it dynamic so that whenever user clicks on particular image it should automatically open enlarged image for that. I don't know how to workout italic/bolded portion on url

Thanks,
Help Plz
Nov 20 '07 #1
1 1256
acoder
16,027 Recognized Expert Moderator MVP
Show the code for the images. They should have the source of the images. You will need the src property of these img tags.
Nov 21 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
4378
by: Moon | last post by:
Seems I still haven't got the hang of all those window generating code in Javascript. I've got a page with about 15 photo thumbnails. When you click on a thumbnail a new window pops up which shows the enlarged version of said thumbnail. This works fine on all current browsers I've tested. However, in case I do not close the popup but click on another thumbnail instead, only IE replaces the enlarged pic by the new one, Firebird and Opera...
14
11094
by: D. Alvarado | last post by:
Hello, I am trying to open a window containing an image and I would like the image to be flush against the window -- i.e. have no padding or border. Can I make this happen with a single call to a window.open function? I would prefer not to create a separate HTML page. So far all I have is the basic var cwin = window.open('images/KJV-THANKS.gif', 'Thanks', 'width=243,height=420,'); cwin.focus();
3
1176
by: Howard Martin | last post by:
I have a site at http://www.honeyantgallery.com which shows paintings by Australian Aboriginal artists. A visitor can click on a thumbnail of a painting and an enlarged version pops up in a new window. The client now wants to add close-up details of paintings to be linked from the pop-up but I can't get the pop-up to create another pop-up - the close-up detail opens in the same window and looks silly. Is there a way to achieve this?...
2
1087
by: john Devlon | last post by:
Hi Can anyone please help me? When I click on a imagebutton, I would to open a new browser window, display the same image, enlarged. Does anyone know how to do that in asp.net ? thanx
0
8752
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9401
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9257
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9176
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9113
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6702
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4519
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4784
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2635
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.