Thursday, March 22, 2012

Thread in ASP.Net

Hi
I wana to ask that
can i make script in ASP.Net using thread?
Regards
HumairAs long as you have a good needle.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Humair Ahmed" <humair@.axact.com> wrote in message
news:e50m#NGKEHA.2692@.tk2msftngp13.phx.gbl...
> Hi
> I wana to ask that
> can i make script in ASP.Net using thread?
> Regards
> Humair
Technically, you can but you will run into problems because the script must
be streamed out to the client thru the response object. The response object
is owned by the main thread and such cross pollination is forbidden. As an
alternative, you can build the script on a thread, pass it back to the main
thread and then the main thread can stream it out to the client.

--
Regards,
Alvin Bruney [ASP.NET MVP]
Got tidbits? Get it here...
http://tinyurl.com/27cok
"Humair Ahmed" <humair@.axact.com> wrote in message
news:e50m%23NGKEHA.2692@.tk2msftngp13.phx.gbl...
> Hi
> I wana to ask that
> can i make script in ASP.Net using thread?
> Regards
> Humair

0 comments:

Post a Comment