sleep or wait on web application

  • Thread starter Thread starter Brian
  • Start date Start date
B

Brian

Hello,
Is there any way to make a web application that will
refresh itself after a certain amount of time? I am
trying to make a messageing program that will refresh and
grab the new messages after about 30 seconds.

Thanks for any help.
Brian
 
I would be happy with using a timer also, but I don't
think that this is possible with a web application. It I
am wrong please let me know.

Thanks.
 
Hi Brian,

You may need to do it in the client side.
Since web application is based on http protocol, it works as
request/response model.
That is to say the server side can not push data to the client actively.

You may use setTimeout Method in the client side for the timer like
function.
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/ref
erence/methods/setTimeout.asp


http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&threadm=$9sGgp
0YDHA.2172%40cpmsftngxa06.phx.gbl&rnum=1&prev=/groups%3Fhl%3Den%26lr%3D%26ie
%3DUTF-8%26oe%3DUTF-8%26q%3D%2522lewis%2Bwang%2522%2Bxmlhttp

If you have any concern on this issue, please post here.

Regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Thanks for the reply. I have got pulled on to a different
project for a couple days, but I will try to get it to
work today. How do you put html code into a vb.net
project? I am sure it is easy, but I have never done it
before. Any help would be appreciated.

Thanks,
Brian
 
Hi Brian,
How do you put html code into a vb.net
project? I am sure it is easy, but I have never done it
before. Any help would be appreciated.

I asume it is a windowforms project, have for that a look at
Microsoft.MSHTML you have to set a reference in your project to use it from
the normal net reference.

Do not set an import, there are so many objects in it that your form will
immidiatly been overloaded and new every code you enter will be slow.

I hope this brings you on the way.

Cor
 
Hi Brian,

You may write the html code in the *.aspx(e.g. WebForm1.aspx).

You may access the html view, by select the WebForm1.aspx and then click
the "HTML" at the bottom of the view so that you can add the html code in
the view.

If you have any concern on this issue, please post here.

Regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
That was it. You know I have been working in .net for a
while now and I somehow never seen that html button on the
bottom. Thanks for the help.

Brian
 
Back
Top