Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Generate Alert in ASP.NET

Posted on 2003-11-05
5
Medium Priority
?
374 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

zlib is a free compression library (a DLL) on which the popular gzip utility is built.  In this article, we'll see how to use the zlib functions to compress and decompress data in memory; that is, without needing to use a temporary file.  We'll be c…
For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared 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…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…

604 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