| | |
How to create a pm alert notice
Please support our ASP.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Sep 2007
Posts: 1,080
Reputation:
Solved Threads: 68
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.
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.
I answer pm's.
I answer questions.
I answer quickly.
I answer.
I answer questions.
I answer quickly.
I answer.
•
•
Join Date: Sep 2007
Posts: 1,080
Reputation:
Solved Threads: 68
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.
I answer pm's.
I answer questions.
I answer quickly.
I answer.
I answer questions.
I answer quickly.
I answer.
![]() |
Similar Threads
- Virus Alert on taskbar (Viruses, Spyware and other Nasties)
- laptop is very slow (Viruses, Spyware and other Nasties)
- frozen desktop....i think (Windows NT / 2000 / XP)
- "Forbidden / You don't have permission to access / on this server." error (Linux Servers and Apache)
- Problems loading Programs HELP!! (Viruses, Spyware and other Nasties)
- printing webpages (JavaScript / DHTML / AJAX)
- Automatic email creation in cpanel ----PHP (PHP)
- another newbie with alot of redhat and apache server Q'S (Linux Servers and Apache)
- Perl/CGI (Checking For Data) (Computer Science)
- Pop3 Mail Watcher (Part 1) (Visual Basic 4 / 5 / 6)
Other Threads in the ASP.NET Forum
- Previous Thread: how to show data from database in label?
- Next Thread: given path's format is not supported -virtual directory problem-
| Thread Tools | Search this Thread |
.net 3.5 ajax alltypeofvideos appliances asp asp.net bc30451 beginner box browser businesslogiclayer button c# cac checkbox class commonfunctions control countryselector dataaccesslayer database datagrid datagridview datagridviewcheckbox datalist deployment development dgv dialog dropdownlist dropdownmenu dynamic dynamically edit embeddingactivexcontrol expose fileuploader fill findcontrol flash formatdecimal formview gridview gudi iis javascript list listbox login microsoft mouse mssql nameisnotdeclared news novell numerical opera panelmasterpagebuttoncontrols problem radio redirect registration relationaldatabases reportemail save schoolproject search security sessionvariables silverlight smartcard smoobjects software sql sql-server sqlserver2005 ssl suse textbox tracking treeview unauthorized validatedate validation vb.net video videos vista visualstudio vs2008 web webapplications webdevelopemnt webdevelopment webprogramming webservice wizard xsl youareanotmemberofthedebuggerusers






