thanx for reply.
As for AJAX, I don't really wanna, cuz all the codes are all done and good
to go in C# (plus there's many components involved....it's just all tied up).
As for Webservices...will that make the processing totally separate from the
other processes from the pages (ie button clicks)? I believe both page
actions and webservices are handled by the same asp.net process. if
threading the database process in a page didn't make it separate (since it
hogged up the whole asp.net process), won't putting it on the webservice do
the same thing? (ie asp.net handles the webservice in another of its own
thread, but that thread hogs up the entire asp.net process, so the page
actions have to wait)
I don't want to move all my code to webservices unless I know that it'll
improve it.
"Albert Pascual" wrote:
> Jason,
>
> Actually the Thread will die if the page that created the thread is
> destroyed. Use a webservice or Ajax to accomplished that.
>
> Cheers
> Al
>
> "Jason Chu" wrote:
>
> > I have a webpage which uploads a big file onto access db.
> > if the file is say around 30 megs, it'll take around a minute for it to get
> > put into the access db.
> > I didn't want the user to wait for it, so I decided to put it on a thread.
> > The thread works, but not the way it should.
> > One of my page will start the thread, and then forward the user to another
> > page.
> > The thread will start, and browser will get forwarded to the next page, BUT
> > as soon as I click anything in that second page, the response will be stuck
> > waiting until the thread processing the upload is done. Now that isn't very
> > much threaded now is it?...
> > Why is that happening? is putting stuff on the access db a process that has
> > to be done alone and can't be threaded?
> > Thx
|