Web Forms :: Upload Image Directly Or Make Thumbnail?
Jun 2, 2010
I have a requirement where i need to upload image files and display them as thumbnails on webpage. when clicked on thumbnial image the orginal uploaded image must display.iam in great confusion whether to make thumbnails dinamically on the fly when retrieving the orginal image or make thumbnails and save them to saperatefolder when uploading and save orginal image to another folder.
View 5 Replies
Similar Messages:
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
Jan 18, 2011
is it possible to make an upload button that sent an image to two folders
my products page details and my product list have different image folders and in the add product i want to be able to do the above with the image field in the admin add product page
View 3 Replies
Jul 3, 2012
i want to generate thumbnail image from big image and store into separate folder.
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 14, 2010
Is it possible to directly upload a file after it is browsed and selected? I mean user should not click on "submit" button after file is selected. It should be uploaded automatically when selected. Is it possible to do that with fileupload control?
View 5 Replies
Jan 22, 2010
I can get the file(image) to display, but it displays at a size that is too large for my use. Basically, right now, I'm pointing the ImageField to the first field in the grid that contains the url of the image. I could require the user to create a smaller image of the file but that seems a little excessive. Is there any way to control the size of the column displaying the image? Here is the html, we are using LINQ to get the data that is displayed in the grid.
[Code]....
View 4 Replies
Jan 13, 2011
I have to create a web app (in C#) that's gonna let my users upload their files straight to Amazon S3 (not enough bandwidth on our own server). It looks like the only way i can do that is posting a simple HTML form to Amazon. The problem is that i have to do some work on my server too, like renaming the files, setting up flags on db when file is uploaded, and so on. I really can't see how to do that without uploading files first on our server, which is out of question, so other solution for this? Amazon S3 forum is pretty poor on this topic.
View 2 Replies
Mar 18, 2013
How to upload the file directly from the client machine. I have one button for mail sending.
If i click the button, the from, to, subject comes using pageload. Like that the default file also could be added as a attachment directly from the client machine.
How to upload the file directly(using file upload control or eithout using file upload control)...
View 1 Replies
Dec 5, 2010
I have a simple store that I have created following the book "Pro ASP.Net MVC 2 Framework" and in this book there is one table in the db: product.
This table hold the product data (id, name, price, category, image)
There is a sqlrepository that returns a linq table object in the sqlrepository constructor like this:
[Code]....
View 9 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
Apr 16, 2010
Does anyone know a free way of doing this in asp.net?
View 4 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
May 2, 2010
I want to get thumbnail image from embedded videos of myspace, break.com, flickr.com etc using C#.net
View 4 Replies
May 7, 2015
I used below code for uploading image and show in image control with thumpnail metod for reducing image size:
protected void BtnUpload_Click(object sender, EventArgs e)
{
string path = Server.MapPath(".") + "../image/House/product";
string filename = System.IO.Path.GetFileName(fup1.PostedFile.FileName);
string[] validext = { ".jpg", ".png" };
string ext = System.IO.Path.GetExtension(fup1.PostedFile.FileName);
if (Array.IndexOf(validext, ext.ToLower()) < 0)
[Code]...
It save original image in host, now I want it save image that reduce size with GetThumpnail metod in other place How I can do it?
View 1 Replies
Nov 27, 2012
I am using a fileupload tool and an asp button. I want to upload image using fileupload, save it in a folder named images in my website and create its thumbnail view on the same page using VB.
View 1 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
Mar 23, 2010
Have a look at this link.Web pageIf I want to have this kind of speed in my page load which consists of many thumbnail images. It that image is stored in database or in file system.What measures to take to achive this kind of speed like indexing, denormalization, caching and what else?
View 7 Replies
May 7, 2015
Refer below threads: [URL] ....
I used code for reducing image size(GenerateThumbnail) in above threads my images were in datalist now I have image in my page that isn't in datalist
<asp:Image ID="Image" runat="server" CssClass="GVimg" style="Height:85px; Width:110px" />
And bind it from database
SqlCommand _cmd1 = new SqlCommand("selectFUP1", _cn);
_cmd1.CommandType = CommandType.StoredProcedure;
_cn.Open(); _cmd1.Parameters.AddWithValue("@Behcode", data);
SqlDataReader _dr = _cmd1.ExecuteReader();
while (_dr.Read()) {
image.ImageUrl = "~/image/house/product/" + _dr["Image2"].ToString();
lblerrorV.Text = " ";
}
_cn.Close();
Now I want use GenerateThumbnail code that was in threads for above code... How I can do it?
View 1 Replies
May 4, 2013
How can I create Thumbnail Image For Pdf files uploaded by user .. The Thumbnail contains first Page of Pdf only.. Is it Possible through ItextSharp ?
View 1 Replies
Mar 7, 2011
How can we upload video to Youtube? My requirement is that user uploads video to our site and after admin approval that video is uploaded to Youtube. i.e. The video is not directly uploaded to youtube when user uploads it to our website
View 4 Replies
Nov 21, 2010
I have a gridview which displays thumbnails in the first column and details in the other columns. The thumbnail URL is being retrieved using the following:
[Code]....
However, if the thumbnail cannot be located, a white box with a cross appears instead (as expected).
To handle this better, I would like to display a different image if the thumbnail cannot be located for any reason, for example an image saying "Image Cannot Be Displayed". But I am unsure of how to do this, of even where to do this. Essentially I need to assess the value that the datagrid is using for the particular URL when it is databound. But can I put VB.NET code in this?
View 9 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
May 11, 2010
I want to display the thumbnail image in grid view from file location . how to generate that of .jpeg file
I am using C# language with asp.net
View 3 Replies