Last post Feb 14, 2010 06:19 PM by valerio006
Feb 10, 2010 08:52 PM|valerio006|LINK
I have a web app that I'm writing in asp.net, with vb code behind. The threads were working well when I had all my code in the aspx.vb code behind files, but after I moved the code into a seperate Class.vb file, the threads don't seem to be working in parallel
any more. Below is a small section of my code.
It used to be that when the "botThread.Start()" method was called, the page would redirect to success.aspx, and work on the SQL query (RunBots()) thread in the background. Now when botThread.Start() is called, the page doesn't redirect to success.aspx until
AFTER the RunBots() sub has been completed. Can anyone tell me why?
Feb 14, 2010 01:39 AM|enableDeepak|LINK
Ideally I do not see any reason that it should behave differently in class. I tried a similar sample application and it worked as intended in either ways of writing code.
However, you may wish to try:
True parameter may cause redirect to work immediately, however your method would still get invoked.
Feb 14, 2010 06:19 PM|valerio006|LINK
Thanks for that...I will try it out.