Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Scripting / October 2003

Tip: Looking for answers? Try searching our database.

Can I use DoEvents in .NET Server Side VB code?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jim Mitchell - 20 Oct 2003 03:34 GMT
I find that some code (like saving cookies) is not processed before a
server.transfer in VB.  I was thinking I could use DoEvents, but Visual
Studio does not seem to take it?

Listed below is the code...

Thanks in advance

DoEvents()

Server.Transfer(call_string)
Steve S - 20 Oct 2003 10:42 GMT
try Application.DoEvents()

> I find that some code (like saving cookies) is not processed before a
> server.transfer in VB.  I was thinking I could use DoEvents, but Visual
[quoted text clipped - 7 lines]
>
> Server.Transfer(call_string)
Michael Lang - 20 Oct 2003 21:42 GMT
"Jim Mitchell" <jim.mitchell@earthlink.net> wrote in news:utWJrKrlDHA.2160
@TK2MSFTNGP10.phx.gbl:

> I find that some code (like saving cookies) is not processed before a
> server.transfer in VB.  I was thinking I could use DoEvents, but Visual
[quoted text clipped - 7 lines]
>
> Server.Transfer(call_string)

try calling the static Sleep() method on the Thread class...

       Thread.Sleep();

...which passes control of the processor to the next thread.
bruce barker - 22 Oct 2003 01:38 GMT
DoEvents does a window loop on a windows based app.  there is no window loop
on asp.net as its a service process.

this has nothing to do with cookies. cookies are stored and sent by the
browser. if you do a server.transfer, you have the same request object (and
same cookies) as the inital page, the new cookies set by the first page are
in the response (as they have not yet been sent to the client).

-- bruce (sqlwork.com)

> I find that some code (like saving cookies) is not processed before a
> server.transfer in VB.  I was thinking I could use DoEvents, but Visual
[quoted text clipped - 7 lines]
>
> Server.Transfer(call_string)

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.