Solved

Generate Alert in ASP.NET

Posted on 2003-11-05
5
289 Views
Last Modified: 2013-11-25
I want to generate alert using asp.net. Scenario is; In one stock website I found stock x is at $50. I want to get informed when the stock reaches $60.  System should send me an e-mail when it reaches to $60. I don't want a program running in a background (in schedular of windows) to do this task.
Thanks
-Ashish
0
Comment
Question by:ashishnaik1
5 Comments
 
LVL 4

Expert Comment

by:kblack15217
ID: 9688918
This can be acheived by taking advantage of the threading namespace available in .NEt.   Basically, the idea is that you spawn off a thread which has access to the parent object.   It keeps track of a property in the parent object, in this case, stock price.    In a loop, if the stock price is less than 60, it just sleeps and tries again.  But when it is above 60, you can use the parent object to invoke a callback method, which will handle your alert.

Threading is too detailed to get into on here, but here is a place to start reading.

http://www.devasp.net/net/search/default.asp?c_id=560
0
 
LVL 3

Expert Comment

by:barryfandango
ID: 9689382
Ashish,

Your criteria about background/scheduling is not clear.  There are two ways your program could run:

1. An EXE that constantly monitors the stock and sends email when some condition is reached, or
2. An EXE that checks the stock once, and that EXE is scheduled to run on a regular interval.

I'm not sure which one you're asking about.  In either case, this sort of application is probably more at home in the C# category as it is not the sort of thing you would code as an ASP.NET page.  Well: you could code it as an ASP.NET page, and keep on hitting "Refresh."
0
 
LVL 4

Expert Comment

by:kblack15217
ID: 9689423
Good point barry,
I kind of lost track of the ASP.Net part.  Threading is a solution that will work better with desktop appliations.   HOwever ASP.NET can be C#, or VB.NEt, or any other supported language.
0
 
LVL 7

Expert Comment

by:vnvk
ID: 11830640
No comment has been added to this question in more than 21 days, so it is now classified as abandoned.

I will leave the following recommendation for this question in the Cleanup topic area:
    PAQ - no points refunded

Any objections should be posted here in the next 4 days. After that time, the question will be closed.

vnvk
EE Cleanup Volunteer
0
 

Accepted Solution

by:
modulo earned 0 total points
ID: 11862964
PAQed - no points refunded (of 400)

modulo
Community Support Moderator
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now