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 / ASP.NET / General / July 2005

Tip: Looking for answers? Try searching our database.

Global Messaging (maybe Global Events?)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jrstutz@gmail.com - 19 Jul 2005 21:18 GMT
Hi all...

I'm pretty new to ASP.NET applications, but have some experience as a
Windows appliation developer. In an ASP.NET solution we're coding, we'd
like be able to create a user control that can intercept "messages"
from our other business classes / user controls to be displayed to the
User.

The approach we've been (unsuccessfully) taking, is to create some sort
of global event that can be triggered by any of our business objects /
user controls. The event could then be monitored by the Message Display
user control for display.

Is this even possible? Is there a better way to accomplish what we're
trying to do? I'm not necessarily looking for a complete solution, but
a shove in the right direction would be awesome.

TIA

JS
Steve Lutz - 23 Jul 2005 12:31 GMT
Questions about the messages:
   1) Are they supposed to live across requests?
   2) Are messages to specific user or to ALL users?
   3) Are you intercepting messages, or just receiving them?

If you just want a simple message queue that lives through-out a request,
then you can create it in System.Web.HttpContext.Current and add items to
it. It goes away after the request is completed

If you want it to live through-out a user's session, you can stick the
messages in the Session as a session variable.

If messages are to multiple users, spanning multiple http requests and
multiple sessions, I'd suggest a database solution.

HTH
Steve

> Hi all...
>
[quoted text clipped - 16 lines]
>
> JS

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.