Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 12-11-2005, 12:04 AM   #1 (permalink)
m-motevalli
Registered User
 
Join Date: Dec 2005
Posts: 5
m-motevalli is on a distinguished road
help for alert service

hi
please help me for programming "Alert Service".I don't know how i do it.
I am programming with asp.net and asp.please help me.thank you for usefull help.i wait help you.
m-motevalli is offline   Reply With Quote
Old 12-11-2005, 08:19 AM   #2 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,693
redhead is on a distinguished road
Code:
Dim Message as string = "Alert Box from Code Behind." 
Dim strScript As String = "<script language=JavaScript>" 
strScript += "alert(""" & Message & """);" 
strScript += "</script>" 
If (Not Page.IsStartupScriptRegistered("clientScript")) Then 
    Page.RegisterStartupScript("clientScript", strScript) 
End If
Else take a look at this example
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001
redhead is offline   Reply With Quote
Old 12-11-2005, 08:45 PM   #3 (permalink)
m-motevalli
Registered User
 
Join Date: Dec 2005
Posts: 5
m-motevalli is on a distinguished road
no,I need mail alert service.for example I want that my web site's users info from newes.
m-motevalli is offline   Reply With Quote
Old 12-11-2005, 08:51 PM   #4 (permalink)
teknomage1
Jack of all trades
 
teknomage1's Avatar
 
Join Date: Feb 2005
Location: Los Angeles
Posts: 596
teknomage1 is on a distinguished road
Send a message via AIM to teknomage1
You just need to define a system that sends mail upon an update in the news system. So if your site's news is updated by you typing something into a form and hitting update, the mails need to be sent after that form is processed.
__________________
Stop intellectual property from infringing on me
teknomage1 is offline   Reply With Quote
Old 12-11-2005, 11:10 PM   #5 (permalink)
m-motevalli
Registered User
 
Join Date: Dec 2005
Posts: 5
m-motevalli is on a distinguished road
thank you 'teknomage1 '
please explain me more about this subject.you have source program.
if you have ,send for me.thank you.
m-motevalli is offline   Reply With Quote
Old 12-12-2005, 07:21 PM   #6 (permalink)
teknomage1
Jack of all trades
 
teknomage1's Avatar
 
Join Date: Feb 2005
Location: Los Angeles
Posts: 596
teknomage1 is on a distinguished road
Send a message via AIM to teknomage1
I don't have any source but I can explain a bit more.

Let's assume you have a traditional database backed web solution. Suppose you have a class that encapsulates your site's new functionality called 'clNews' . 'clNews' has some methods for displaying and updating the contents of the 'siteNews' database table.

So you have two ways of creating email alerts for news updates. The simplest solution to implement would be to keep a list of subscribers in another database table called 'newsSubscriber' . In the update method of the 'clNews' class the final line after the SQL query that updates the db would be to send an email to each subscriber from 'newsSubscriber' with the heading of the new article and a clickable link to the new article.

The alternative solution, especially if you have a large number of updates per day, would be to have a process that runs nightly, or weekly, that collects all of the headlines for that time period and sends a digest email.

I'd provide code, but I don't actually use or have the ability to use ASP or .NET
__________________
Stop intellectual property from infringing on me
teknomage1 is offline   Reply With Quote
Old 12-17-2005, 02:32 AM   #7 (permalink)
m-motevalli
Registered User
 
Join Date: Dec 2005
Posts: 5
m-motevalli is on a distinguished road
thank you .I am looking forward to hear from you.
m-motevalli is offline   Reply With Quote
Old 12-17-2005, 11:37 AM   #8 (permalink)
teknomage1
Jack of all trades
 
teknomage1's Avatar
 
Join Date: Feb 2005
Location: Los Angeles
Posts: 596
teknomage1 is on a distinguished road
Send a message via AIM to teknomage1
I'm having trouble understanding your last post. Can you be more clear?
__________________
Stop intellectual property from infringing on me
teknomage1 is offline   Reply With Quote
Old 12-18-2005, 12:58 AM   #9 (permalink)
m-motevalli
Registered User
 
Join Date: Dec 2005
Posts: 5
m-motevalli is on a distinguished road
I just wanted to thank you for help.I am waiting for to recive the cod.
m-motevalli is offline   Reply With Quote
Old 12-18-2005, 01:20 PM   #10 (permalink)
teknomage1
Jack of all trades
 
teknomage1's Avatar
 
Join Date: Feb 2005
Location: Los Angeles
Posts: 596
teknomage1 is on a distinguished road
Send a message via AIM to teknomage1
There won't be any code unfotunately. I don't do ASP.
__________________
Stop intellectual property from infringing on me
teknomage1 is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
IBM and Zend Team to Drive Adoption of Service Oriented Architectures with Zend Core sde Code Newbie News 0 07-12-2005 09:28 AM
New Microsoft Security Service to Offer Timely Guidance redhead Code Newbie News 0 05-09-2005 02:44 AM
Bill Calculation Aznxmel Standard C, C++ 4 03-06-2005 06:44 AM


All times are GMT -8. The time now is 08:46 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting