473,387 Members | 1,520 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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

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)
Jul 21 '05 #1
3 1328
try Application.DoEvents()
"Jim Mitchell" <ji**********@earthlink.net> wrote in message
news:ut**************@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
Studio does not seem to take it?

Listed below is the code...

Thanks in advance

DoEvents()

Server.Transfer(call_string)

Jul 21 '05 #2
"Jim Mitchell" <ji**********@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
Studio does not seem to take it?

Listed below is the code...

Thanks in advance

DoEvents()

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.
Jul 21 '05 #3
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)

"Jim Mitchell" <ji**********@earthlink.net> wrote in message
news:ut**************@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
Studio does not seem to take it?

Listed below is the code...

Thanks in advance

DoEvents()

Server.Transfer(call_string)

Jul 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

24
by: bazad | last post by:
Hi, I'd like to understand consequences of Application.DoEvents call. Does it create a new thread? Thank you
6
by: Ollie Riches | last post by:
I understand the use of Application.DoEvents() to process all outstanding messages on the message queue in a winforms application if you have long running process on the UI thread. But can anyone...
17
by: Lance | last post by:
I've noticed that calling DoEvents is much slower in an application that has called Application.EnableVisualStyles in Sub Main. Furthermore, the performance seems to worsen each time that DoEvents...
11
by: Charles Law | last post by:
I know I have brought this one up before, but I didn't get an answer last time, so hopefully I will have better luck this time. I send data out of a serial port on my main thread. I wait for a...
3
by: Rich | last post by:
As I migrate my VB6 apps to vb.net I am checking what features I need to retain from vb6. In vb6 I noticed that DoEvents really made a performance difference when I called it just before a Do/For...
12
by: Jack Russell | last post by:
My unstanding of all VB up to and including vb6 is that an event could not "interrupt" itself. For instance if you had a timer event containing a msgbox then you would only get one message. ...
3
by: Jim Mitchell | last post by:
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...
12
by: Justin | last post by:
I can attach my code if anyone wants to see it however I'll try to ask my question with some mark up code first. I'm having a problem terminating my process while using DoEvents. For example: ...
11
by: Don | last post by:
I have a WPF application in VB in VSTS 2008 RTM. I am trying to "blink" (momentarily clear) a field of data if the data is reloaded from the database to give the user some visual indication of the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.