Move Time Consuming Operations Out Of Page Load?

Aug 31, 2010

I have a aspx page in which i create reports and charts on the fly. Creation of these charts and reports takes a lot of time because of which a blank screen is shown to the user until the creation completes.

can unlink actual report and chart creation code from page load so that i can show a processing text and then show the generated chart or report once it is ready.

EDIT :-

I would want to do something like this -

on first request trigger the report or chart creation and register a call back for completion. the client can then poll the server every 2-3 seconds to check if the report creaetion is complete.

View 2 Replies


Similar Messages:

AJAX :: Error On First Time Page Refresh Then Removes On The Second Time / Could Not Load File Or Assembly

May 20, 2010

Server Error in '/MedTegraSL.Web' Application.

Could not load file or assembly 'System.Windows, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' or one of its dependencies. The system cannot find the file specified.

Description:

An unhandled exception occurred during the execution of the current web request. review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IO.FileNotFoundException: Could not load file or assembly 'System.Windows, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' or one of its dependencies. The system cannot find the file specified.

Source Error:

[Code]....

Source File:

c:ProductiveTeamsMedTegraPresentationMedTegraSLMedTegraSL.WebMainMaster.Master Line: 16 Assembly Load Trace: The following information can be to determine why the assembly 'System.Windows, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' could not be loaded.

[Code]....

Stack Trace:

[Code]....

View 2 Replies

What Is A Reliable Way To Run Time Consuming Tasks In MVC2

Sep 15, 2010

I need reliable way to run 10 different tasks simultaneously. For instance the first one would be sending emails, while the next one is cleaning rows from a specific table... so on an so forth.

I've used the Thread class and while it works well on my development machine (VS2010 internal web server) non of these threads seems to be working at all on my production server. And I don't know of an effective way to debug the problem on the production server.

I saw this technique which encourage you to register cache objects. Since the application fires a callback when a cached item expires, then it's possible to run any code to mimic threading behavior. It seems a little Micky Mouse like.

View 3 Replies

Architecture :: Running Time Consuming Process Behind The Scene?

Dec 23, 2010

My web application currently requires users to upload files, after which I take it for "further processing". This processing is VERY time consuming and can take a while before the control gets back to the user. I would like to run this in the background and not have the user wait until this completes.

I know this question has been asked in this very forum before but I'm not able to understand or I'm not able to proceed in the right direction. My understanding is there are a few ways I can go about this

a) create a BackgroundWorker process in my Global.asax file that will spawn a process and take care of the activity.

b) create a web service that will do the processing for me .. (how?)

c) Use Ajax (Again how?)

View 2 Replies

Web Forms :: Perform Time-consuming Task On Server?

Oct 28, 2010

I have a function which performs a series of time-consuming operations which include querying a large database, customising an excel file and sending an email with a 5MB attachment.

I would like to excute this function in the background, when a button is clicked, and immediately redirect the user to another aspx page. The user should be free to browse to other pages or even close the browser when the background operation is still running on the server. I have tried to implement threading but could not get it to work. The email with attachment does not get sent even though there are no errors.

View 5 Replies

Localization :: Making RESX Translation Process Less Complicated / Time Consuming

Dec 27, 2010

I have worked on many localized sites in the past, using mainy some standard patterns and techniques involving Global/Local RESX files as well as session to maintain currently selected language.

However, it is quite difficult to maintain from a translator point of view, we used a small tool that converts RESX to Excel and then the localized Excel back to RESX, but for some reason this technique doesnt work properly anymore...

better and more reliable tools (paid or free) that can be used to localize RESX and provide translation team a better/easier way to localize content?

View 3 Replies

Forms Data Controls :: 11 Gridviews On Same Page - Optimize Page Load Time?

Oct 4, 2010

I have a web page which has about 11 gridviews.Hence the page takes bout 15 seconds to load.The grids are 1 below the other.They are populated at the page load.

I need a solution to reduce page load time. Is there a way,where the gridview loads only if user scrolls to it. I donot want the user to make selection for everytime he wishes to see a gridview. The page should show gridview if its data is bound to it, not waiting for entire page gridviews to get populated.

View 3 Replies

To Show Pdf Files In Web Page - Taking Much Time To Load Page?

Mar 6, 2010

I have web application where i want to show pdf files in web page. in my page there are 5 pdf files i have to show at a time.it's taking much time to load page. and also user has to wait until all files are loaded in page.is there any free components to show pdf files.

View 3 Replies

How To Maintain Page Load Time In C#

Aug 28, 2010

My question is that how to maintained page load time in c# and what page time load is good for site to crawl google index

View 1 Replies

How To Decrease The Page Load Time In Application

Jun 30, 2010

How to decrease the page load time in ASP.NET application? What should be the precautions and specially when we are interacting with databases

e.g.
wise use of viewstate
Set in web.config when deploying the app
etc

View 9 Replies

Web Forms :: How To Count Page Load Time

Jan 22, 2011

find page load time,i want to put some progress gif or animation untill the fully page load with all it content

for example.....u have familiar with facebook or orkut u will find some progress animation untill the all data content load

Is there any other way by not using updatepane...ajax

View 7 Replies

C# - How To Load Menu Only Once Time In Master Page

Jan 31, 2011

i created Master page which has got mainNavigator panel on top of page that is a web user control(BuildMenu.ascx). i am filling UC Menu in master page's loading :

[code]...

Every post back BuildManu.ascx is loading every time tihs is really bored me. How can i solve it. I want to do only one time load BuildMenu.ascx (in master page)

View 3 Replies

Website And Some Other Page Also Are Taking Some Time To Load?

Apr 20, 2010

The home page of my website and some other page also are taking some time to load, instead of making them load fast, I want some please wait screen or progress bar and mean while the required page would be loaded behind.

View 3 Replies

Web Forms :: Steps To Be Taken If The Page Takes Time To Load?

Feb 12, 2010

if I hit the .aspx page on the browser and if the page takes time to load say may be 25-30 seconds then what are the steps to be taken to make sure that the page loads quickly. In other words what could be the reason for this slow loading.

View 3 Replies

Web Forms :: Page Load Method Is Firing Two Time?

Apr 21, 2010

I have as asp.net website the code behind is C#.

i my application Page load method is firing two time.

View 4 Replies

Web Forms :: Optimize Websites Load Page Time

Oct 18, 2013

How I can optimize my website's  load page time?

View 1 Replies

Web Forms :: Login Page To Load 9 Times Each Time The Web App Is Called?

Feb 22, 2011

Using Forms authentication, for some reason my login page is called 9 times. it causes some browsers to show "too many redirects!". Even with no javascript and nothing in the page_load event, it is called 9 times.

View 2 Replies

Architecture :: Designing Heavy Page (Takes Time To Load)

Aug 17, 2010

What should be the approach while designing when you know that your page would take considerable time to load? e.g. if it has controls which are heavy & some which are lighter? Can we make use of any of the design patterns to solve this issue?

View 4 Replies

AJAX :: Page Load Fires Twice On Every First Time Pageload Using Updatepanel

Apr 27, 2016

In my page without using updatepanel page open firsttime it fires only single time, after using updatepanel page load fires twice firsttime page open.. how to solve it.

View 1 Replies

Can Large External JavaScript Files Slow Down The Page Load Time

Aug 4, 2010

When we include Javascript files in our aspx files. either we write all the Javascript code in the Head section of aspx or we link to an external Javascript file.

So when the clinet makes a call to that page. Does that mean that all the Javascript will be loaded on the client side?

If that is the case then does not that mean that it will slow down the loading of page as all the Javascript has to be loaded on the client machine?

View 3 Replies

Web Forms :: Class Variables Which Initialize The First Time Execute Page Load?

Sep 23, 2010

I have some code I only want to execute the first time I display a form. With this in mind I created a class variable which I initialize the first time I execute page load.

public partial class CLVideoDefinition : System.Web.UI.Page
{
string videofile;
string first;
protected void Page_Load(object sender, EventArgs e)
{
if (first != "N")
{

I then select a value from a drop down list , but when it does the auto postback it executes page load but my class varaible has been reinitialized to null and will then execute the code I only want to execute on the first run. why my class variable has been reinitialized.

View 4 Replies

Web Forms :: Displaying Loading GIF Image Whenever Page Takes Time To Load

Apr 27, 2016

Displaying loading gif image whenever my page takes time to load but not for particular single control. i had seen this. URL...but it working for button , can i check it for my whole page  and all controls whenever it takes times to load.

View 1 Replies

AJAX :: Load MS Chart Every Time When Page Loads Or Button Clicks In Update Panel

Mar 7, 2011

I have 2-3 update panel in my page and i don't want to load chart every time when my page loads or button clicks etc. I put that in update panel with triggers means only some clicks should loads chart. but that chart gets loaded everytime. how to stop that from loading

View 2 Replies

Web Forms :: Webpage Takes Long Time To Load For The First Time?

Apr 30, 2010

I am working on a ASP.NET 2.0 application. It is hosted on IIS 6 on Windows 2003 server.

Few pages have jpeg images (around 50 images and 50 KB each). It takes long time to load the page for the first time. But when i open the same page for the second or third time it is faster.

why does a web page take long time to load for the first time?

Is it cached somewhere when it loads for the first time? Do we have any control over it?

View 5 Replies

Partial Rendering - Pages Are Taking Time To Load First Time?

Aug 25, 2010

Issue:

As my pages are taking time to load first time.

So user has to wait till full page gets loaded and thats irritating . Was this the reason MVC was evolved?

Solution :Should i use partial rendering on all pages including home page, and all forms getting called from home page.

So even if half page is loaded thats less frustrating

For Partial rendering what i plan is : i will put Scriptmanager with Enable partial renderingand update panel for half part of page.

So that user dont have to wait for full page to load.

Is my plan correct? Problem is i cannot regenerate page load issue every time.

View 4 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved