473,698 Members | 2,024 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 1253
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
4372
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
11086
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
1173
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
1083
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
8674
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9157
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...
1
8893
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
7721
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5860
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4366
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
4615
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2327
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
1999
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.