Design Question...
Messages   Related Types
This message was discovered on ASPFriends.com 'aspngarchitecture' list.


Julian Templeman
I'm pretty new to ASP.NET, and a new requirement looks like it may
need something slightly different from what I've used up to now. I'd
welcome opinions from those more expert in ASP design (which means
pretty much anyone, at this stage :-)

I've got a C# object created by an ASP.NET page, watching a data feed
which periodically provides new data values. These are displayed on
the page, and what I'm doing at the minute is to reload the page every
few seconds to capture the new data. The problem is that new data can
arrive at widely differing intervals, from once a second or so to once
every couple of hours, or even longer.

The C# object fires an event when new data arrives, and it would be
much neater to handle the event, and then cause the relevant control
on the page to update. I may be missing something really obvious, but
I can't see an obvious way to implement this 'push' functionality.

Or am I barking up completely the wrong tree here, and it would be
best to go back to more traditional methods, such as pipes...

julian

Reply to this message...
 
    
Karel Vandenhove
In stead of reloading the entire page, you could use httpXML to poll for =
new info and display that when available. =20
=20
Alternatively you could create an ActiveX client object that connects to a =
server through tcp. The server can then notify the ActiveX.
=20
K.ind regards,
Karel

    -----Original Message-----
From: Click here to reveal e-mail address=20
Sent: Wednesday, August 07, 2002 4:49 PM
To: "aspngarchitecture" <Click here to reveal e-mail address>
Subject: [aspngarchitecture] Design Question...

    I'm pretty new to ASP.NET, and a new requirement looks like it =
may=20
need something slightly different from what I've used up to now. I'd=20
welcome opinions from those more expert in ASP design (which means=20
pretty much anyone, at this stage : )=20

    I've got a C# object created by an ASP.NET page, watching a data =
feed=20
which periodically provides new data values. These are displayed on=20
the page, and what I'm doing at the minute is to reload the page every=20
few seconds to capture the new data. The problem is that new data can=20
arrive at widely differing intervals, from once a second or so to once=20
every couple of hours, or even longer.=20

    The C# object fires an event when new data arrives, and it would =
be=20
much neater to handle the event, and then cause the relevant control=20
on the page to update. I may be missing something really obvious, but=20
I can't see an obvious way to implement this 'push' functionality.=20

    Or am I barking up completely the wrong tree here, and it would =
be=20
best to go back to more traditional methods, such as pipes...=20

    julian=20

    | [aspngarchitecture] member Click here to reveal e-mail address =3D YOUR ID=20
| http://www.asplists.com/asplists/aspngarchitecture.asp =3D JOIN/QUIT=20
| http://www.asplists.com/search =3D SEARCH Archives=20

Reply to this message...
 
    
Brian Boyce
Hi Julian,

There is a solution that is a very close fit for what you are looking for.
You cache the data from the data feed and have the cache refresh only when
the data is altered. Although ASP.NET caching cannot trigger expiration on a
change to a database, you can make the cache dependant on a file. The trick
here then is to create a trigger on table in your data feed that alters a
file whenever any action that warrants a refresh occurs on your table.

Here is a link to an article that covers this approach.

http://www.dotnetjunkies.com/tutorials.aspx?tutorialid=385

If you have any problems getting it working or have any further questions on
the solution, drop me an e-amil and I'll see if I can help

Brian

Brian Boyce

Research Director
Alphatec Software Ltd.
Tel: 01908 363908
Mailto:Click here to reveal e-mail address

-----Original Message-----
From: Julian Templeman [mailto:Click here to reveal e-mail address]
Sent: 07 August 2002 15:49
To: aspngarchitecture
Subject: [aspngarchitecture] Design Question...

I'm pretty new to ASP.NET, and a new requirement looks like it may need
something slightly different from what I've used up to now. I'd welcome
opinions from those more expert in ASP design (which means pretty much
anyone, at this stage :-)

I've got a C# object created by an ASP.NET page, watching a data feed which
periodically provides new data values. These are displayed on the page, and
what I'm doing at the minute is to reload the page every few seconds to
capture the new data. The problem is that new data can arrive at widely
differing intervals, from once a second or so to once every couple of hours,
or even longer.

The C# object fires an event when new data arrives, and it would be much
neater to handle the event, and then cause the relevant control on the page
to update. I may be missing something really obvious, but I can't see an
obvious way to implement this 'push' functionality.

Or am I barking up completely the wrong tree here, and it would be best to
go back to more traditional methods, such as pipes...

julian

| [aspngarchitecture] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspngarchitecture.asp = JOIN/QUIT
| http://www.asplists.com/search = SEARCH Archives

Reply to this message...
 
 




Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com