I am writing an 3-tier enterprise asp.net web application which needs to be very lightweigt to lower the bandwidth usage. I want to speed up ASP.NET web page loading, I have minified all js and css, used AJAX, used less images in page, used paging for grids but still the overall response page size goes to nearly 1Mb because of viewstate hidden fields.
Is there a way to measure the time elapsed for a web page to execute?
And if so, is it safe to use that figure to estimate the speed of the web page as the number of users grow and the database grows. Ie: if the page currently takes 1 second to process through x amount of rows in the database, to estimate it would take 2 seconds with 2x rows?
I started using url routing for my web application. It's a dynamic website and it has more than 50k pages. It looks like now it works slower. how to optimize it, to improve it and make it more efficient?
I would like to set cache- control on a folder of images in a web application . In that way i can cache the images and the web pages will load a lot quicker . I can specify this in IIS by putting a ISAPI extension , but how can i do the same thing in asp.net application, ie create that setting in IIS when the application first starts up .
I want to implement the following page by Asp.net version 4.0 and ajax but I want to have loading by order like loading item 1 and 2 and so on. I have container or web part but mostly container like simple asp.net panel. how I can implement it ? I used updatepanel and update progress but it doesn't work that I have expected before.
im developing some backends in ASP.NET 2.0 and i have put all the images in Cache, GZIPED my CSS, JS files and everything to speedup the load of each options.
the performance its good and i have no problems with the clients but i want "MORE" fast loads and im looking for some recomendations.
Is important to mention that those websites are using only in intranets so im thinking to implement my next projects using IFRAME for content that way (i think) the options will be loading faster because they not have to load the entire site.
EDIT:
im not using viewstates i wrote HTML (code behing) generated controls and use as less as possible ASP.NET Rich controls, all my static contents are in Static vars (Header, Menu, Footer) but im just looking for speed up a litter more.
After compile my website i compress all the HTML, CSS, JS and use less of those files as possible.
but i was seeying others Backend that loads faster than my and the difference is the IFrame control that they use (i think), we check code, design, etc and we use the same (they use #INCLUDES for static HTML instead STATIC VARS with the HTML)
I have a web application running on ASP.NET 3.5 which basically stores, retrieves, and allows users to manipulate data from a SQL Server 2005 database. One of the features allows users to search through the records in the database. When the system was first launched last year, there were no records, so searches were lightning fast. However, over the past year, about 100,000 records have been entered, so most searches now take over 15 seconds to perform. I'd like to speed up searches, but there are problems with both of the conventional approaches I can think of:
Caching - The database does all the heavy lifting in this application - the ASP.NET web application is little more than a UI that passes user input to the correct stored procedure, and displays the returned output. The stored procedures are responsible for interpreting user input, applying the business rules, and transforming the underlying tables and views into a context-sensitive result set which the application just displays as is. Unless if there's a way to apply a stored procedure to a C# object/collection (the cached records), and get another C# object/collection back, effectively bypassing the database, I don't think this will work.Stored procedure optimization - There's some optimization potential here, but even a simple SELECT * FROM TheView statement on the underlying view currently takes 11 seconds according to SSMS, and I expect that the amount of time taken will continue to increase as more records are entered.Are there are techniques out there that I'm not aware of, which could be used to bring searching down to a reasonable amount of time (5 seconds or less per search)?
When I browse the asp.net pages on local host, only IE renders pages very fast. In every other browser I have a delay of 1 second or so. Why is that happening and is there any way to speed up the response time in other browsers (web.config, IIS setting)?
I know its a common question. But I want to share something. Actually I am working on e-commerce portal. It consists of 32000 products with around 2500 categories. I used 3-tier architechture for this project.Everyting is coming using stored procedures. I used master pages as well.But still I am fighting with the performance issue. Can anyone pls tell me some usefull steps to increase the speed of the website.Its taking ages to load the pages. please look at the site
i see that my site is a little slow in my localhost it is fast but in the server not but i see that videos are displayed without problems so i dont think that is from bandwith but i am not sure which are the main things that make a page go slow? sessions can be one of that?? or connections with database??or something else?
i have 100 buttons and 101 textboxs, button run scripts and some of them run by code like this:
[code]....
i meaen i want it run on client side only , before i submit by another button, but the problem is it spent more than 2 second to get value
from textbox1 to textbox2 in this case( because i have 101 button run like these), i know that it need time postback to server. i could not use return()false because if i do like that the value from texbox1 will not add into textbox2, 2 seconds is not reach my golf.
I am working on finance domain, we are using many sessions and viewstates for store values and data. Our clients want fast speed of our website. We are using grid/repeater/datalist and chart controls for show data.
I want to send multiple emails with high speed. I am sending a newsletter on daily basis to around 4000 contact-IDs. I developed VB.net code for sending emails through THREADS. My threads are sending Emails to my contacts. But the problem is the speed is slow. I wanted to send emails with high speed and with less email bounce ration.
I'm using Webservice which will return the data from the database through datatable and I'll convert the datatable into byte array. In front end, I'll reconvert the bytearray to datatable and used ajaxloader to display it in the form.. It is dynamic loading. So, for each click, it is taking 10 seconds to retreive the data regardless of the size of the data. So, I used static datatable and I've loaded all data in that datatable in page load event. But, no reaction. It is taking only same time. Even, there is no data to retreive, the ajax loader is going on loading for 10 seconds. Problem is with Ajax or my webservice??
My Code for listboxclick event
protected void listboxcity_SelectedIndexChanged(object sender, EventArgs e) { string sqlvalue = string.Empty; //Thread.Sleep(200); for (int i = 0; i < listboxcity.Items.Count; i++)
I have website that users can download some film from this website I want define speed for every IP that each IP can download just with 200KB... How I can do it?
I could use some guidance on a better way get get my data than I am using. This way is taking nearly 45 seconds to get the data and bind it to a gridview here are my methods used to get the data
I have two datetime2(1) fields in my db. I will calculate the time in hours and minutes between them. That I have done this way:
[Code]....
This works. But how can I calculate the avgerage speed if I have drived 665 kilometers in this time? I know how to do it with only houurs but not with the minutes to. I have tried this and I think it works. Is it correct?
My web server and database server are currently both in the same room. However, the web server might be changed to a different server in another building about a mile down the street. I want to make sure this doesn't have a negative impact on the connection speed between the database and web server. Is there a way to test the connection speed from both web servers to the database?
Recently, I added a massive amount of new languages (as RESX files) to an ASP.NET Web Site project in VS.NET 2010.
The project has approximately 50 ASPX pages and did build rather fast, before I added the languages.
Since the languages were added the compiler takes several minutes (well, at least 1-2) until the browser sees a page.
Now I'm currently investigating, whether I could speed up compilation time inside my development environment. I can think of:
Leaving out the RESX files in VS.NET and copy them from another, external folder, when deploying to the web server, only. Change the project type from Web Site to Web Application.
My question:
how you would improve development speed of a large multi-language website in ASP.NET 4.0?
I have a website that enable the user to upload pics to server (uploaded pics sizes are 300x400 and approximately 270kb). In my app. I am having another page that lists the pics and I am using there an image control for that purpose. The Image control sizes are 80px width, 60px height. My question is how can I improve the download speed by minimizing the images ? Do I have to create a thumbnail for each picture the user upload?