473,326 Members | 2,655 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

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 1572
Are you talking about the folders on the server or on the client?

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

<re****@gmail.comwrote in message
news:11**********************@p79g2000cwp.googlegr oups.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.comwrote in message
news:11**********************@p79g2000cwp.googlegr oups.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
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...
9
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...
4
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...
1
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...
39
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. ...
7
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...
9
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
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
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.