Re: Sending an alert message to logon user in Web Application

From: Steven Cheng[MSFT] (v-schang_at_online.microsoft.com)
Date: 05/21/04


Date: Fri, 21 May 2004 03:23:57 GMT

Hi Pradeep,

As for your question on let the online user in the web application notify
each other and let the receiver get message automatically without do any
operation, I think Patrik 's suggstion is reasonable. The web application (
no matter asp.net or asp or any other b/s techs) are all request/response
mode in which the client has no persistent connection with the serverside.
So if we need to store the message info at the serverside. And need to
notitfy the user when there is any new updates in the serverside data. We
have to let the client post back to the server constantly to query the
datas. And currently there're two means:

1. Constantly refeshing the page to post back it and query the
database(store messages) at serverside and if there is new updates then add
clientside script so that when the page response return client , the
client script will popup a dialog to notify the user. And since constanly
refreshing page will make the page blinking, so generally we use a hidden
iframe (set width and height as 1 so as to make it not visible to user) to
contain the refreshing page. You can also search on the web for such skills
and it is widely used in online message board system(which have the
functoin to let the online user to send message to each other:) ).

2. As for the IE browser, we can use DHTML and script code to call
webservcie at serverside. That means, we can expose a serverside message
system intefaces(such as query and udpate) in an asp.net webservice. Then
in asp.net web page, we call the webserice via clientside javascript to
query the database on server so that we don't have to constanly refresh the
page to post back it.

Here is the related reference on DHTML webservice in MSDN:

#About the WebService Behavior
http://msdn.microsoft.com/workshop/author/webservice/overview.asp?frame=true

Hope these help. Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx



Relevant Pages

  • RE: Strange exeption when connecting to WebService
    ... when calling webservice. ... Permission issue, the process acount haven't read/write permission to ... serverside issue.(If both the client side and serverside are based on ... Also, as for clientside, the identity of the client app will also need to ...
    (microsoft.public.dotnet.framework.aspnet)
  • SoapExtension execution on clientside
    ... I have created an extension that only runs on the serverside and not on both ... I executing my webservice from a windows app. ... I added the classas a reference on the client. ... The extension works well on the serverside. ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: test for existence of file
    ... client side, you cannot. ... You can use this code on the serverside either with a webapplication or with ... a webservice application. ...
    (microsoft.public.dotnet.framework)
  • Re: test for existence of file
    ... client side, you cannot. ... You can use this code on the serverside either with a webapplication or with ... a webservice application. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: test for existence of file
    ... client side, you cannot. ... You can use this code on the serverside either with a webapplication or with ... a webservice application. ...
    (microsoft.public.dotnet.languages.vb)

Loading