Solved

image click

Posted on 2008-06-12
10
150 Views
Last Modified: 2013-11-26
Yes I have a image thumbnail when clicked it will open a new window to see the image.
I want to embed the image so when clicked on it will open on the same page. or even another page in my master page.

 <a href='<%# Request.ApplicationPath %><%# Eval("Filename", "../Gallery/{0}") %>' target="_blank">

filename is returns image name then  Gallery returns the folder name ((/2008611115528)).JPG and 0 returns from my select statement the is of the image. But not sure how to return large image within the masterpage or another page.
0
Comment
Question by:sevensnake77
  • 5
  • 5
10 Comments
 
LVL 96

Expert Comment

by:Bob Learned
ID: 21777987
Try target="_self", or removing target altogether.
0
 
LVL 9

Author Comment

by:sevensnake77
ID: 21780362
No that just opens the window to display image itself
0
 
LVL 96

Expert Comment

by:Bob Learned
ID: 21781218
I don't understand what you are looking for, and what you just said.
0
 
LVL 9

Author Comment

by:sevensnake77
ID: 21781601
Sorry, Ok when I click on the thumbnail it opens a window, weather it is the same window or new window it just shows the image itself, because the way I have it is a direct link to the image. What I need is to click on the image and have it open up in the same window or another part of the file so the image will open as a large view within  the master page.not new window or a direct link to the image.


read the first comment please thanks
0
 
LVL 9

Author Comment

by:sevensnake77
ID: 21782656
I use the link below this should help with clarification. so I want the thumbnail  image when click on to appear in the same page as a large image.

http://www.beansoftware.com/ASP.NET-Tutorials/Picture-Album.aspx
0
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 
LVL 96

Expert Comment

by:Bob Learned
ID: 21785067
Here is what I would do:  redirect to a page that is pointed to the master page, and will get the file name from a QueryString value, and then display the image.
0
 
LVL 9

Author Comment

by:sevensnake77
ID: 21786110
do you have a small example then I will close this case
0
 
LVL 9

Author Comment

by:sevensnake77
ID: 21786116
Passing the querystring I am having that problem with 2 cases. I create the page but How to pass the querystring to on page to another.  this will kill 2 birds with one stone dude.
0
 
LVL 96

Accepted Solution

by:
Bob Learned earned 500 total points
ID: 21786697
Response.Redirect("ShowImage.aspx?url=" & fileName)
0
 
LVL 96

Expert Comment

by:Bob Learned
ID: 21786700
Dim url As String = Request.QueryString("url")
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Class object 2 27
Runtime Exceptions when trying to submit data 28 37
Export import database 4 43
ASP.net Javascript use multiple sliders 2 19
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now