Jump to content
Xtreme .Net Talk

Recommended Posts

  • *Experts*
Posted

Becase ASP.NET requires the postback of the page to the server

to execute code and change the contents of a page, yes, you

would have to refresh the page to requery the web service.

 

To "gracefully" refresh you might put an Update button on the

page, or set a meta refresh to a certain time.

"Being grown up isn't half as fun as growing up

These are the best days of our lives"

-The Ataris, In This Diary

  • *Experts*
Posted

I suppose if you put the request to the service on its own thread,

then yes, you could show the page and have the service return

its results afterward. For this, I'd suggest reading up on [mshelp=ms-help://MS.MSDNQTR.2003FEB.1033/cpguide/html/cpconmanagedthreadingbasics.ht]threading[/mshelp].

"Being grown up isn't half as fun as growing up

These are the best days of our lives"

-The Ataris, In This Diary

Posted
thanks, i appreciate it. i actually tried to some threading in the web service, but it didn't work. but maybe i can get it to work on the client side. for this piece of it, i really don't need a result set, because the information will be cached. basically i have an intense query that takes 20 or 30 seconds to run and I don't want the user to wait on the information. the user's page is refreshed every 30 seconds, it can load based on the cached information. after the memory is updated, the page will be upto date after it is refreshed again.
  • *Experts*
Posted

Yes, you'll want to put the thread on the client side of the

request, so that the method that calls the service can run on a

different thread. If you put it in the service, the client would still

be waiting for a response, no matter what thread it's running on

in the service.

"Being grown up isn't half as fun as growing up

These are the best days of our lives"

-The Ataris, In This Diary

Posted
thanks for the input guys, i will let you know how it goes. i am also going to try to create a web service that only has a sub and not a function. i am hoping the client will not wait on a sub to run since it doesn't return anything. i will let u know how the test goes. thanks again.
Posted
well, i don't know exactly what the best solution was, but i do have my project up and running. the main problem i had was dealing with the cache. the main reason i was having a problem was because i put a duration on my cache and i didn't remove it before updating it. another thing that helped was putting an index on the sql statement. the speed increased from 2 minutes to 5 seconds. i created an asynchronous web method, but I can't tell how much it helped out. i also created a thread on the client side web page, but it didn't seem to help the page load any faster. anyway, i appreciate the help. thanks for the input and advise.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...