473,585 Members | 2,496 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Get Function to Run after Page Loaded on Client

Is there a way to get an ASP.net Function to run after the page has
been loaded onto the client

I need to run a function that will fetch the folder sizes of a whole
drive. As you could guess this takes so long. So I want it to run
after the page has been rendered to the client. As I was planning on
using AJAX support (from Anthem.net) to update the page as the folder
size function was running.

I have tried running this in Page_Unload but its still waits for the
Foldersize function to finish before rendering the page on to the
client. Then I tried running the FolderSize function as a web service
but it still waits for the web service to return a value before
rendering the page to the user.

Is there a way to achieve this? and is there a term for this scenario,
so I can search about it on the internet.

Jul 11 '06 #1
3 1582
Are you talking about the folders on the server or on the client?

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]

<re****@gmail.c omwrote in message
news:11******** **************@ p79g2000cwp.goo glegroups.com.. .
Is there a way to get an ASP.net Function to run after the page has
been loaded onto the client

I need to run a function that will fetch the folder sizes of a whole
drive. As you could guess this takes so long. So I want it to run
after the page has been rendered to the client. As I was planning on
using AJAX support (from Anthem.net) to update the page as the folder
size function was running.

I have tried running this in Page_Unload but its still waits for the
Foldersize function to finish before rendering the page on to the
client. Then I tried running the FolderSize function as a web service
but it still waits for the web service to return a value before
rendering the page to the user.

Is there a way to achieve this? and is there a term for this scenario,
so I can search about it on the internet.

Jul 11 '06 #2
You could start a new thread that calculates the folder size.
http://www.ftponline.com/vsm/2002_11...tures/chester/

Shawn

<re****@gmail.c omwrote in message
news:11******** **************@ p79g2000cwp.goo glegroups.com.. .
Is there a way to get an ASP.net Function to run after the page has
been loaded onto the client

I need to run a function that will fetch the folder sizes of a whole
drive. As you could guess this takes so long. So I want it to run
after the page has been rendered to the client. As I was planning on
using AJAX support (from Anthem.net) to update the page as the folder
size function was running.

I have tried running this in Page_Unload but its still waits for the
Foldersize function to finish before rendering the page on to the
client. Then I tried running the FolderSize function as a web service
but it still waits for the web service to return a value before
rendering the page to the user.

Is there a way to achieve this? and is there a term for this scenario,
so I can search about it on the internet.
Jul 11 '06 #3
The server side

Eliyahu Goldin wrote:
Are you talking about the folders on the server or on the client?

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
Jul 11 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
4944
by: Penn Markham | last post by:
Hello all, I am writing a script where I need to use the system() function to call htpasswd. I can do this just fine on the command line...works great (see attached file, test.php). When my webserver runs that part of the script (see attached file, snippet.php), though, it doesn't go through. I don't get an error message or...
9
5723
by: Martin Waller | last post by:
Hello, I've been playing with the idea of just how to use an ASP page to provide a remote function call. In an ideal world this would be a web service but how can you do it if restricted to ASP 3.0 ? Idea 1 was to write an ASP page that accepted arguments using the classic ?X=1&Y=2 type of strings and have the page return an ADO...
4
9505
by: coolsti | last post by:
I am aware of the setInterval and setTimeout functions for Javascript, but I can't seem to find an example that lets me do what I need to. I have a script that needs to wait until a certain condition is met. In this case, the condition is that an iframe has been reloaded completely. I do this by examining a hidden document variable in the...
1
1754
by: brianj7675 | last post by:
Basically i'm trying to write a previous next link in order to go to the next page in my database(similar to google's with numbers in the middle for pages the user wants to jump to. My only thought is i'm losing the parameters on page reload. But if that is the case then I don't know the correct technique to keep the variables I am...
39
6507
by: Randell D. | last post by:
Folks, I'm sure this can be done legally, and not thru tricks of the trade - I hope someone can help. I'm writing a 'tool' (a function) which can be used generically in any of my projects. When it completes, it can call a success, or a failure function. The names of these success, or failure functions will differ, and I'd like to know...
7
3564
by: Schmidty | last post by:
Okay...I have another 'newbie' question; I have a function that loads a page and the action is $_SERVER; In the form that is in a function(method?) within a class a variable is passed back to a mysqli connection and database and updates the database. The problem is that when the page is reloaded it does not show the updated information...
9
1768
by: Gilbert | last post by:
Hi, In the code-behind, i have this function: Public Function myfunction(ByVal myvar As Object) As String dim x as string = myvar ..... Return x End Function
10
1563
by: optimistx | last post by:
Is there a way for a bookmarklet to know, when exactly the page was loaded or refreshed? If yes, how? :)
0
8199
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8336
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
8212
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6606
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5710
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3863
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2343
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1447
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1175
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.