Display Large Photo From Thumbnail
Feb 17, 2011
I am creating a website where users can upload a profile picture. When a photo is uploaded I am resizing it and generating two new files one for a thumbnail view and one for a large view. Both photos are stored in the same folder and the file names are stored in to two different columns in an SQL table against the users membership account. The two new files use the following naming convention:
Random_name_small.jpg
Random_name_large.jpg
I am then using a grid view with a custom template and an image button to display the Random_name_small.jpg. What I would like to do is when some clicks on this thumbnail photo to then display the associated Random_name_large.jpg. From the SQL select command I am reading both the Random_name_small.jpg and Random_name_large.jpg and then binding Random_name_small.jpg to the image button. Can this be done using the details view or should I be rewriting the code manually to display these images.
View 5 Replies
Similar Messages:
Mar 4, 2011
I am creating a gallery of thumbnail pictures and when a user clicks one I need to show the full image. What I was going to do was on click set a varible for that picture and open ViewImage.aspx what would load that image big until I discover and ImageBox doesn't have a click event. Whats the best way of acheiving showing a large image simply from clicking a thumbnail?
View 1 Replies
May 7, 2015
After saving image in db how can we retrieve it in gridview like thumbnail size image and by clicking on image in gridview its open as preview. How can we do this in asp.net using c#.
View 1 Replies
May 21, 2010
I have a ModalPopupExtender control inside accordin control, users can add images, that I sotre the path in database(sql server) and the actual image in physical address inside web server,I automatically resize the image to thumbnail size in C#, when users first connect to the site,the see the thubmnail version of the image,which is much faster to download,and by clicking the thubnail, the hidden asp:pnael is shown with imzge in full size, I use javascript to unhide the panel and also change the image source to actual image,everything works fine in IE, but in Firefox and Chrome, the first time user clicks on thumbnail can not see the full size image,only after couple of time, they see the full size image? what could be the problem?
I am using asp.net ,C# what is the best way to achieve this?
View 3 Replies
Mar 4, 2011
I have an Image control on my page that should display a thumbnail preview of the actual image. The URL property of this control is assigned through the code-behind using:
imgHolder.URL = @table.Row[0].ItemArray[0].ToString();
Before moving my files to another location, this assignment works fine (The files used to be located inside the application folder). But after moving all files to another drive in the same server, the images don't seem to render any longer. I can upload/download files fine but they just won't display as thumbnails on the page.
View 7 Replies
Jan 22, 2011
in asp.net i want the user to chose a photo to upload from their HD . then i want the uploaded photo displayed and an hyperlink option to save or reject this photo. if accepted the filename will be stored in a DB.
the problem is displaying the photo before it has been saved.
I display strFileName which works on my PC but not on my laptop.
[code]
View 4 Replies
Aug 20, 2010
I have some photos on database and i would like to show them based on the person who insert them. show me a piece of code (just to give me an idea) how can i view them?
View 7 Replies
Mar 31, 2010
A user will upload the images through FTP in the images folder. So my requirement is when he clicks on the link say for eg [URL] all the images should be displayed in the thumbnail format. What I did is I opened the IIS and over there I selected the directory listing. So when I click on the link [URL] it shows the list of images. But I want this in the thumbnail format.
View 1 Replies
Jun 3, 2012
This is code that reduce our image size in page
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<asp:Image ID="Image1" runat="server" ImageUrl = "~/Jellyfish.jpg" Height = "400px" Width = "400px"/>
[Code] ....
I want use it in Data List ... In my datalist i have 3 image that i bind from DB i want reduce this image size how i can do it with this code?
View 1 Replies
Apr 1, 2012
I have image in my webpage that it has this property width=250px hight:200 and image size :200KB
i want when i put this image in my page with this Property width:100px and hight:100px image size Automatically change EX:100KB how i can do it ?
View 1 Replies
Jun 23, 2010
i am facing a prblem about image resizing.. i know it is a common problem but the scinario is little different here. i have some image in my server image directory and also have their small 128 X 128 sized thumbnail..i show a page with those images like 'facebook photo album' and also linked another page to display them..when a picture is clicked it refferd to that page and that page loads the full sized original image along with picture comments bla bla..., the page width is fixed to 1024px, and the div's width is 800px max which contains the <asp:image..../>; that shows the full sized image. here the problem comes, when a original sized picture is greater that 800px then the remaining part of the picture is croped !! i know it will happen.. that is why i planned to show a thumbnail like pic which's size will be 800px max and link the page with a pop up java script page which will contain the full sized picture only. the problem is i can't resize the picture in a limit of 800px on fly.
View 8 Replies
Jan 21, 2010
I need to create a thumbnail solution in order to display pictures of products.
There can be more than 1 thumbnail per product and I need a way to enlarge the image as well.
The thumbnails will be displayed in atleast 3 or 4 pages across the system and I need the ability to delete them as well.
For version 2 of the software (knowing PM's it may be thrown into Version 1), I think I will need to be able to enhance this feature to allow movie clips so that's something I need to keep in mind.
The images will be stored in the DB so I can sort the code to retrieve them but I'm originally a windows programmer and this is my first major ASP.NET project and also my first attempt at C#.
View 14 Replies
Apr 9, 2010
I've got:
<asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl='<%# "PropertyDetails.aspx?propertyId=" & Eval("propertyId").tostring %>'><asp:Literal ID="Image1" runat="server" Text='<%# Eval("imageId", "<img src=""images/properties/{0}_thumb") %>' /><asp:Literal ID="Image2" runat="server" Text='<%# Eval("imageFormat", "{0}"" alt="""">") %>' /></asp:hyperlink>
which displays an image from my db.
However, if there is not an image - e.g. if my property record doesn't have any images associated with it, I would like to display a default thumbnail.
View 1 Replies
Dec 13, 2012
How to upload the photo and display in the image control,in the same employee form...the image is displayed in the right side. I've written the code for upload image,the image will uploaded successfully, I want to display on the same page.
View 1 Replies
Oct 12, 2012
I need to develop image gallery
Image saved in Folder called Images and image Name , Description saved in Database Table Images.
On Deafault.aspx
Thubnail images should display with out any change in Quality i.e by DataList Control
On Click of Thubnail images Fullview of image with width and height same as image width and height
Next, Previous, Close Buttons on Popup window
View 1 Replies
Jun 17, 2012
I use these code for resizing image
behind code
public string img_resize(string picname, int maxHeight, int maxWidth)
{
System.Drawing.Image currentImage = System.Drawing.Image.FromFile(server.mappath("mypics") + picname);
double imgHeight = 0;
double imgWidth = 0;
imgHeight = currentImage.Height;
imgWidth = currentImage.Width;
[code].....
but in this line occur error
<ItemTemplate> <%#img_resize(Eval("my_img"),100, 80)%> </ItemTemplate>
error: Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. Parser Error Message: The server tag is not well formed.
what should i do ?
View 1 Replies
Apr 29, 2010
[Code]....
i am using asp.net with c#, i have table images
shop nvarchar(50),
imgc image
imgo image
iam saving images in a database but while retreving it is showing blank images. i want to display as thumb nail images
View 1 Replies
Jan 7, 2011
I am trying to show a large amount of data in gridview but the problem is that everytime data increase the gridview row size increase automatically.
is there any possible way that the data which is stored in my MS access Database display in multi line instead of one single long line.
View 4 Replies
Feb 20, 2011
I have about 5,00,000 data. I want to display the records according to group by. It takes to me about 2 minutes. Is it good?
If not, then what is best process to display the record in a very fast way?
Moreover, I have encrypted one field in database and encryption is done from my code behind. So when I display the records, I have to decrypt those. That's why I make paging on 100 records per page.
View 4 Replies
Mar 22, 2010
when i did not have too many controls on the gridview, it was displaying fine. but when i added more controls, it has become very slow and displays a large size for a second or so, and then comes to normal size.
View 1 Replies
Jun 13, 2010
I want to display a large html document on my webpage with paging functionality.How can i achieve this functionality.
View 18 Replies
Jan 24, 2016
With reference to the following thread: URL....I have problem applying the same concept to gridview EditItemTemplate. Is there a way i can add comma to large numbers and display it in currency format like exemple below:
Textbox3=Textbox1 * Textbox2
Textbox3= 1,000.00
Textbox3 should happen OnTextChanged and the above controls are in Gridview edit mode.
View 1 Replies
Jan 24, 2016
How can i calculate the sum of two textboxes(Textbox1 and Textbox2) and then add comma with .00 to another textbox(Textbox3). Example say Textbox1 = 2 and Textbox2 = 500
Textbox3=Textbox1 * Textbox2
Textbox3= 1,000.00
Note: Textbox3 should happen onkeyup ...
View 1 Replies
Sep 26, 2012
I fetched Blog Description and displayed on the ListView control when user search for the blog titlewise. But it is everything displaying on blog description. I want to display first 4/5 lines only and then it should display ..... [ continue ]
View 1 Replies
Mar 5, 2010
we have a classic ASP Webpage for displaying reporting data.
The process is following:
user inputs reporting criteria reporting criteria are passed to a method in a VB6 DLL containing the reporting business logic (generating a dynmic sql statement) VB6 DLL method returns xml data xml data are displayed with xsd transformation 150.000 datarows are displayed in some seconds (less than 10 seconds maybe) Now we want to extend this reporting function and decided to use asp.net (2.0) So I have written a little prototyp application with a SqlDataSource Object and a GridView Control.
A table with less data (about 100 or so) are displayed quickly.
But a view with about 150.000 datarows needs about 2 minutes and ended with a OutOfMemoryException!
The request of the customer is definitvely to display the data on one page like in the old classic asp application!
View 1 Replies