Web Forms :: Minimize The Masterpage Loading - Website's Response Is Very Slow
Jun 22, 2010
have a website with MasterPages, on load master page has many database roundtrips and logics implemented.Now, if move to one page to another, the MasterPage get reloaded and all the above mentioned procedures processed again, which again takes a lot of time and as a result my website's response is very slow.For eaxmple, once the default page is loaded, all the child pages can load within the centent area (in ajax style).
tell me some workaround to optimize the site so that it doesn't this procedures repetitively.
I have a problem with the performance of the web site-application . The major problem is when i hit the site from a long distance remote pc all server side events responces are too slow espesially the gridview (paging) , the point is when i used ajax update panel of asp.net it was more slower .
I have noticed two time-related problems with my website:
 Slowness of loading the graphics for each page in the browser;  Receiving a "Runtime Error" page in the browser when I do take action on the site (e.g. navigate to another page) within approx. 30 seconds.
Are these problems related to limitations of my web host?
I've got this problem.I launched an ASP.NET website with the Umbraco CMS on an ISP.(Its just a very basic informative site. nothing special.)When I go want to visit the website however, the first pageload takes a lot of time, sometimes even up to 20 seconds. Of course this is ridiculous. Afterwards, I am able to navigate the site relatively quick.. So every first pageload is slow, then everything is OK, more or less.Does anybody have any idea what the problem could be? Would it be IIS? ASP.NET?
i hit a case when my page loading is very very slow. I have find out that my page is slow for no reason. The read data process from database is fast and all the server code execute quite fast. The problem is the page loading process is slow, very slow. I am thinking one of the possible cause is jquery itself.
I was watching earlier some of video's which i have Downloaded about Master Page Event's,i was reading how we can call the Control Event's on Master Page from Content Page.Now I want the OutPut as-Response.Write(RadioButtion1.SelectedValue).wht ever value i select
I have an .aspx page with multiple .ascx (User Controls on it). One of the User controls is very slow in loading (calls a very slow webservice for the data.). Now, my question is how to render all the controls on the page (so the User can view those) and have a rotating icon for this control (slow one) (till it loads). I know, I need to bring AJAX into picture, but any clarification on that would help as I will be new to AJAX programming.
I have a drop down list that hides a panel with a bunch of controls when a certain value is selected, and shows the panel again when some other value is selected. This works fine. However it's slow when running both on my local webserver and on my web host, and takes about 1-2 seconds. What could be the reason for this? The only thing I do is to check which value is selected and hides/shows the panel.
Why the ajax control is working slow when i upload to the server? such as the custom validator is slow response in the server, the modal popup box or loading is slow to response or close up after click the ok button. It work fast in the local server.
Currently the page load slow. I am thinking of using JQuery load and render List<A> and List<B> separately and asynchronously. Can I still use MVVM pattern? Or I had to create to controller methods returning List<A> and List<B> separately?]
I have a gridview in which I use HoverMenuExtender to display gridview's respective row value. It is working very fine in my development PC. But after deployment of this web project in hosting site, this hovermenuextender displaying it PopupControl in webpage for very long time in slow internet connection.
I'm trying to implement AJAX within an existing application and it seems to be running slow.
I have 3 datallist that all have checkboxs. I have buttons that all users to check all checkbox for a specific datalist. I have an update panel around each datalist. When I check and uncheck it seems to be really slow. I also have 3 textboxes and 4 buttons within my update panel.
When I user uses this site it hides and shows different panels and that seems to be really slow when the users press a button. There is no database stuff happening when the slowness occurs.
I have a download button on my website to download an application of mine. It works fine but I noticed people are clicking it repeatedly. The response time is a little slow after you click the button. Not that bad for me but maybe it's worse for some. In the button click sub I have the code to get the file and bring up the download window and I also have code to increment a table for download count and get the IP address of the person who clicked the button. If I just have the code necessary to do the download the download window comes up a little bit quicker. Here's my button click sub :
Code: Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click ' Dim FilePath As String = Server.MapPath("~/FolderForDownload/MyApplication.exe") Dim myfile As New System.IO.FileInfo(FilePath) If myfile.Exists Then Response.AddHeader("Content-Disposition", "attachment; filename=" + myfile.Name)
What I've noticed is that when I had Responcse.End() before my code to get the IP address and increment my table and save the IP Address it would skip performing that code so I moved it below the code. It performs the code but I noticed that after you click the button it takes longer before you see the window pop up that asks if you want to Run or Save.
I tried putting the code to get the IP address and increment my table in a separate sub and then call the sub after Response.End() but it still doesn't perform that code unless I call that sub before Response.End().
I'd like to do everything I'm now doing but get the Do you want to Run or Save window to open sooner. I'm getting a number of people downloading my application from overseas and perhaps when it runs the code to identify the IP address it takes longer. I'm not sure but I see people clicking the download button repeatedly. My table records the exact time to the second when they clicked the download button and to take an example, there are 4 consecutive entries with the same IP address and the times are 3:28 PM for all 4 with the seconds being, 13, 15, 16, and 17.
I put a test download page on my website. When I was running in Visual Studio and using a localhost address I was seeing a big difference in how quickly the window opens after you click the download button if there's download code only versus download code with the other code. When I copied the page to my website and accessed the webpage on the internet there didn't seem to be hardly any difference.
Here's a link to the test page on my website if you want to try it out. You don't have to download anything but you can see how quickly the window opens asking if you want to run or save. There are 2 buttons on the page. One says Download Code Only and the other Download Code and Other Code.
I just tried it out and I saw a big difference in time between the two but earlier I didn't. Sometimes I think the added code runs faster and other times slower.
I have a user control that is common to the application. It searchs for lakhs of Items in one go from the db and I set the selected Items in a list in a session to pass on to the pages that use it. Hence making the application a tad slower. The gridview that contains the Items should have sorting, page indexing. What according to u,I should do to enhance the application's performance ?
I am using ASP.NET 2.0 with C#(No AJAX) in my project. In a particular web page, when the a button is clicked, some server intensive processing occurs before the same page is displayed again with the results. While code execution happens on the server in response to Button_Click event, a blank white page is shown to user on his browser in between post backs.
How do i show a message in this case, that the processing is still going on and ask the user to wait.
I have a masterpage and inside that masterpage I have to check if a session is null or not. If the session is null, then there has to be a redirect to a login page.
That is no problem, but the problem is that the masterpage also have controls using the session and the child also uses the session so I get a nullreferenceexception.
I now have this:
But the problem is that the controls on the masterpage are also called instead of redirecting immediatly.
So the main question:
How can I redirect immediatly, without loading further things. Because the page_init gets called as first method the redirect should solve my nullreferenceexception, but than I don't need to load all components etc.
I have created a website with asp.net 3.5 and c# (using linq to sql). its a basically a project managment system. bt its very slow when u look at its loading time. my dashboard takes a whole lot of time to load.when i look at other sites created by my colleagues it loads much faster than my site. they have developed it using ado.net + Stored procedures. that made me believe that linq to sql is slower than ado.net + SP combination.to improve my site perfomance using linq to sql.
I am trying to display this query result in an aspx page.
It is very slow in loading. Here is the query. The inner query inside the outer quesry is the problem.(Please see the underlined part in the query) - (If I remove that part it is very fast.)
--This column is the issue ,Governing_Class=( case when exists (select top 1 tqc.class_code from t_quote_class tqc inner join t_quote_class_premium tqcm on tqc.class_code =tqcm. class_code where tqc.appid=pi.appid and tqc.class_code not in('8742' ,'8810','7380') order by tqcm.premium_amt desc ) then ( select top 1 tqc.class_code from t_quote_class tqc inner join t_quote_class_premium tqcm on tqc.class_code =tqcm. class_code where tqc.appid=pi. appid order by tqcm.premium_amt desc ) ......... From tables