943,733 Members | Top Members by Rank

Ad:
  • ASP.NET Discussion Thread
  • Unsolved
  • Views: 911
  • ASP.NET RSS
Dec 23rd, 2008
0

How to create a pm alert notice

Expand Post »
Hi to all, I am asking on behalf for my best friend. The question is how to create a pm alert notice just like this site
Similar Threads
Reputation Points: 10
Solved Threads: 0
Light Poster
Jason123 is offline Offline
42 posts
since Sep 2004
Dec 31st, 2008
0

Re: How to create a pm alert notice

Database wise:

Create a table that holds the messages, with at least the message, userid to send it to, userid who sent it, and "read date" or read flag. When a user sends the message, you can then populate the message, userid who sent it, userid who sent to. When the user who is receiving the message logs in, do a query for messages to that user where the read date is null or the flag is false. Show all messages returned, or a button to lead them to the page to view the messages.
Reputation Points: 43
Solved Threads: 68
Veteran Poster
SheSaidImaPregy is offline Offline
1,080 posts
since Sep 2007
Jan 1st, 2009
0

Re: How to create a pm alert notice

Thanks for the reply. From what i have noticed - whenever a pm is being send out to a specific user. There's an immediate request prompt box for that user to read the pm .
Reputation Points: 10
Solved Threads: 0
Light Poster
Jason123 is offline Offline
42 posts
since Sep 2004
Jan 1st, 2009
0

Re: How to create a pm alert notice

That method can only be done via ajax, and a loop triggering a database query. Your best bet would be to check for messages on page_load. If there is a message, show an alert. I believe that is how it is handled here as well. You only receive that new message alert when you trigger a page_load.
Reputation Points: 43
Solved Threads: 68
Veteran Poster
SheSaidImaPregy is offline Offline
1,080 posts
since Sep 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP.NET Forum Timeline: how to show data from database in label?
Next Thread in ASP.NET Forum Timeline: given path's format is not supported -virtual directory problem-





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC