Loading A Lot Of Big Images To Web Page?
Aug 31, 2014
I have a page where I want to load a lot of images to. Say I have a page of like 50 images 2mb large each and I want them to be displayed on one page. Whats the best way to do that?
Basically what I'm doing right now is loading them from the server and displaying them in image tags. Problem is this crashes the browser. In chrome it will crash, in IE it will bog the computer down and lock it up. I think the browser is running out of memory or something.I'm wondering if I should be using a background worker or a different thread or something.. Is this possible with a web app?
View 2 Replies
Similar Messages:
Oct 14, 2010
I have a set of images which are subjected to display inside a usercontrol(horizontally) but while loading the page the images are displaying vertically. Only after the page completely loaded they are displaying properly. How can I use jQuery to hide the images when the page is loading and display them when the page is fully loaded. Below is the usercontrol code I am using for displaying controls:
[Code]....
View 2 Replies
Apr 27, 2010
I have asp.net web site which has master page ajax and css file....
I have change masterpage and change master page reference in each page to new masterpage name. then i open aspx page and open in design view no problem i can see new lay out colours and images, when i right click on file name and click on view on browser page open in IE but not images no styles. try on Firefox same problem.
View 9 Replies
Jun 25, 2010
I have a website that uses a master page that contains the navigation for the site.The navigation buttons are images.Some of the navigation button images have hover menus tied to them.Those hover menus contain several image buttons, so as to create a drop down menu affect.The problem I have is when any of the pages are loading all of my hover menu image buttons flash on the left side of the screen for a second or less as the page is being rendered.Can this be stopped?
View 6 Replies
Jan 18, 2011
We have installed a web site written by others which is compiled with Visual Studio 2008 and hosted in Windows server 2008 R2.
The IIS connection timeout is set to 120 seconds. But for some pages, the first page loading fails with HTTP 404 error but sequential refresh can bring the page up. The same problem happens for some images which fail to load in web pages. We are not very sure it is network related issue or hosting issue.
View 1 Replies
May 21, 2010
My images are working fine in local machine but when I publish it in dev server it is not working.
I tried changing the format from jpg to GIF to PNG but still it is not working.
View 4 Replies
Dec 8, 2010
I have a web application that is using SSL. Is there anyway to load external images without the SSL warning dialog?
View 1 Replies
Jun 15, 2010
I have a gridview which displays data for all employees and their images (stored in database).
The images take more time to render completely when i click sort or paging or reload.
I'm using httphandler to display image as stream.
Is there a way i can speed up this image loading?
View 1 Replies
May 27, 2010
I'm using Crystal Reports in a Webform inside of an MVC application. Images in the reports are not being displayed, however, on both the ASP.NET Development Server and IIS 7 (on Win7x64).
I know from a number of other questions similar to this that the CrystalImageHandler HTTP Handler is responsible for rendering the image, but I've tried all of the usual solutions to no avail.
So far, I have
Added the following to my appSettings (via http://www.mail-archive.com/bdotnet@groups.msn.com/msg26882.html)
<add key="CrystalImageCleaner-AutoStart" value="true" />
<add key="CrystalImageCleaner-Sleep" value="60000" />
<add key="CrystalImageCleaner-Age" value="120000" />
Added the following httpHandler to system.web/httpHandlers (via http://stackoverflow.com/questions/2253682/crystal-report-viewer-control-isnt-loading-the-images-inside-the-report)
<add verb="GET" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
Added the following to my Global.asax.cs (via http://stackoverflow.com/questions/2006011/crystal-reports-images-and-asp-net-mvc)
routes.IgnoreRoute("{resource}.aspx/{*pathInfo}");
and
routes.IgnoreRoute("CrystalImageHandler.aspx");
why the images still 404?
View 1 Replies
Apr 26, 2010
why my images are not displaying/loading when i run ASP.net application with IP Address on server 2003.
View 4 Replies
Sep 20, 2015
Today I deployed my ASP.net project in IIS .It is running successfully but images and css will not display.
View 1 Replies
Mar 6, 2013
I have update panel on the page to avoid postback and placed a dropdownlist control within that update panel. DrodownList is filled with Category names and also it's autopostback set to True.
Now whenever dropdownlist index change's on select, untill page loads complete data it should show mesage as "Loading.... in center and middle of the page and background should become bit transparent". And when page load completely with data then that background and message should get disappear.
View 1 Replies
Feb 24, 2011
I had to move an asp.net website from Windows 2003 to another server with Windows 2008. Now when I run the website after setting everything up the images will not load. It is a logo that is in a folder named Images. The file is there along with the folder just like on the other site. Any reason this would not work now? Everything else is working except images. Is there something else I missed in the setup?
View 4 Replies
Feb 12, 2011
mvc musicstore sample application loads cart images using code below. In my application product images are store in database. How to modify this code so that images are loaded from database ?
<ul id="product-list">
<%
{ %>
foreach (var product in Model)<li>
<a href="<%= Url.Action("Details", "Store", new { id = product.Contents }) %>">
<img height="100" width="100" alt="<%= product.Name %>" src="Content/ProductImages/<%= product.Contents %>.jpg" />
<span><%= product.Name %></span>
</a>
</li>
<% } %>
</ul>
View 3 Replies
Aug 19, 2013
I'm creating a simple CMS for a fairly simple web page. I'm currently working on a part for displaying news on the main page.
The controls I have on the page:
- a GridView control with enabled pagging and a SELECT button,
- an Image control for displaying news cover picture,
- CKeditor control for editing news text,
- Repeater control for displaying pictures from database
How does it all work?
In Page_load I have the following:
vb.net Code:
connectionString = "Data Source=KORISNIK-PCSQLEXPRESS;Initial Catalog=****;
User ID=**;Password=****" conn = New SqlConnection(connectionString)
If conn.State = ConnectionState.Closed Or conn.State = ConnectionState.Broken Then
Try conn.Open() If Not IsPostBack Then bindGrid()
[Code] ...
As you can see, I load the GridView control with news from DB. At this moment all other control are disabled. User has to SELECT the row he wants to edit, and click the MODIFY button.
This is what happens when user clicks the MODIFY button:
vb.net Code:
Private Function selectForEdit() dsSelectForEdit = New DataSet
captionPicture.ImageUrl = "" enableCommands()
Dim sqlQuery As String
sqlQuery = "SELECT news.newsCaption, news.newsIntro, news.newsCoverPicture, news.newsStatus,
[Code] ....
Basically, I select newsDetails based on newsID. Also, this is where I take the coverPicture from the database using a generic handler.
This is the code for showImage.ashx:
vb.net Code:
Sub ProcessRequest(ByVal context As HttpContext) Implements IHttpHandler.ProcessRequest
Dim newsID As Int32 If Not context.Request.QueryString("newsID") Is Nothing Then
newsID = Convert.ToInt32(context.Request.QueryString("newsID")) Else
Throw New ArgumentException("No parameter specified") End If
[Code] ....
This part works fine, as the picture is correctly displayed in the Image control. Now, I also want to load the pictures that are related to the selected news. So, I use this function:
vb.net Code:
Private Function selectNewsPictures() dsSelectPicturesForEdit = New DataSet enableCommands()
Dim sqlQuery As String sqlQuery = "SELECT newsDetailsPictureID,newsDetailsPicture,newsDetailsPictureCaption,newsDetailsPictureDescription FROM newsDetailsPictures WHERE newsID = @newsIDEditing" myCommand = New SqlCommand(sqlQuery, conn) myCommand.Parameters.Add("@newsIDEditing", SqlDbType.Int, 250)
[Code] ....
You can see that I take pictureID's and store them into a List (of integer). That way I can use those integers in showNewsPictures.ashx to display all the pictures.
showNewsPictures.ashx:
vb.net Code:
Sub ProcessRequest(ByVal context As HttpContext) Implements IHttpHandler.ProcessRequest
Dim newsID As Int32 If Not context.Request.QueryString("pictureID") Is Nothing Then
newsID = Convert.ToInt32(context.Request.QueryString("pictureID")) Else
Throw New ArgumentException("No parameter specified") End If
[Code] ....
The picture ID's are being sent through pictureRepeater_ItemDataBound:
vb.net Code:
Private Sub pictureRepeater_ItemDataBound(sender As Object, e As RepeaterItemEventArgs)
Handles pictureRepeater.ItemDataBound
If e.Item.ItemType = ListItemType.Item Or e.Item.ItemType = ListItemType.AlternatingItem Then
Dim ctrl As New Image ctrl = e.Item.FindControl("pictureHolder")
ctrl.Width = 100 ctrl.Height = 100 ctrl.ImageUrl = "~/showNewsPictures.ashx?pictureID=" &
listOfIDs.Item(itemIndex) itemIndex = itemIndex + 1 End If End Sub
THE PROBLEM:
I load the page, select the news, click the MODIFY button and all works well. The news details are loaded, the cover picture is loaded, the repeater pictures are loaded.
I click the cancel button (clears all the commands and disables them) and I get an error saying the DataReader needs to be closed.And I never use one This happens either in showNewsPictures.ashx or showImage.ashx.
In some other scenario, this happens right after I click the MODIFY button.
View 1 Replies
Dec 7, 2010
I have a website using Telerik controls for ASP.NET. When an AJAX request starts, the Loading Panel (defined in the master page) will display, with a loading image, text, and faded white background color. It works totally fine in Firefox and Chrome, but the background image and text don't display in IE8. All that displays is the white background.LoadingPanel code: Loading ideas why IE8 isn't displaying the images? I've inspected the page source, and they're there in the CSS.
View 3 Replies
Jul 11, 2013
How to display my images which are stored on an ftp location within a datalist.
View 1 Replies
Jul 17, 2015
I am working on URL Rewriting using RegisterRoutes.
its working fine but all css ,js and image not working when i redirect page using URL Rewrite.
my code is in global ascx is below
public static void RegisterRoutes(RouteCollection routeCollection) {
routeCollection.MapPageRoute("RouteForcategory", "Product/{Cat_Id}/{Cat_Name}", "~/ProductDetailss.aspx");
}
My image path is
<img src="images/logo.png" alt="logo">
But when i run then url and image path looking like below
http://localhost:49936/Product/3/Fruits
And my image path looked
http://localhost:49936/Product/3/images/logo.png
but above is not correct path .
When I redirect page from home page to Productdetailss.aspx then images css, directory root path are changed and its also rewrite. I dont want to rewrite css,js,and image path .
I am also used resloved url code but not working .
View 1 Replies
Jun 23, 2010
I want to display a loading animation while my page is loading, and when loading is complete then obviously hide it.
I am working in ASP.NET using Masterpages, just wondering there is a a simple way of doing this using JQuery?
View 3 Replies
Jun 18, 2010
i have implemented an image preloader using javascript inside my mvc 2 web app, in order to display an animated "loading" image .gif while sequentially displaying page images.I have also implemented caching using a cache profile for the controller action that displays the specific page ([OutputCache(CacheProfile = "LongCache")]).The problem is that the image preloader javascript is called when caching is applied. I was wondering whether i could, somehow, use the image preloader code only when the page gets refreshed and not when the cached version is rendered.
View 2 Replies
Nov 4, 2010
I have form where I am displaying States and related cities. it is displaying properly. I also used MaintainScrollPositionOnPostBack="true" too. But the problem is when I select some state then my scroller goes top of the position first and loading some images. [it shows me on status bar] and after this it it maintained the position. During image loading it takes 4 - 5 seconds and it's too much for me.
View 2 Replies
Aug 2, 2010
I am facing problem with images loading time. In my form I have image server control placed in repeater control. The repeater control every time binds atleast 300 images. When we want to see all the images at a time the page is taking lot of time(atleast 3 to 4 mins) to display. But I need the page should be loaded fast.
The image url is from physical location.And the information related to image is coming from database.
I am using .net framework 3.5 and C#.net as language in asp.net web application.
View 3 Replies
May 7, 2015
i have a gridview with 1 image colums
i want to be when loading images columns show a gif image.
View 1 Replies
Jun 25, 2010
I recently upgraded from VWD 2008 Express to VWD 2010 Express. A problem has developed in that the website's graphics no longer appear in Design mode, there are "Error Creating Control" error messages that did not exist before, and also debugging errors that did not exist before. (Note: these problems did not exist when I first used VWD 2010; they may have originated with recent automatic Windows updates (I use Vista Home Premium SP2 with IIS 7)). The problem exists if I open the website either as a project file or as a website directory.
View 1 Replies
Mar 31, 2010
I've been trying to get image caching working for the last 8 hours and I keep the same problem time and time again, I'm trying to cache Images at the moment and then when thats succesful, apply this to cache my js and css files. I have at the moment Sql Dependancy caching working on my dynamic pages but the page still takes to long due to images not caching.
What I have tried is going to IIS7 Management and adding HTTP Response Header for the images folder and setting various things for the cache control.i dont care how long it caches it on the client or on the proxy servers i just would like it to check when the file was modified and compare it with the one in the client or proxy cache and if they are different then fetch the new image which has been ftp up. i could solve this by changing the image name but the thing is the image name is generated when they are ftp'd to the site by an application and the name is a direct reference to the product so i cant change the name each time, as it would mean making a lot of otherpages accross the board.
so What i would like, is to set and expiry date of lets say 32 days or more on the images and then check to see if they have changed by date modified or some other way of checking(Etags maybe) I'm not sure, if they have changed on the server then redownload and recache them, I tried using post-check and pre-check together but that just permantly cached them, so when i change the image the only way it would display the new image is to just hit F5.
In Brief, how can i Cache images, on the client machine/ proxy cache and recache them when the modified date of the file has changed.
View 4 Replies