Click here to Skip to main content
15,911,762 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i want to show reminder notification on page.for eg. if admin dept sent reminder to perticular person then when that perticular person login into his page then that time he should see the reminder is there ...how it will be can anyone help?

i have created simple page which sends d reminder but how to get that reminder notification after login perticular person.

reminder funtionality how to create?
Posted
Comments
Rickin Kane 26-Sep-12 5:56am    
query the database , find the notification for logged in user then load it on the page
sagar wasule 26-Sep-12 6:12am    
This is just a suggestion please reply what u think abt this,

Every time the user logs into his account the time will be logged in a log or database. When the admin sends any reminder to the user , the time of this reminder sent will also be saved in database. Whenever the user logs into his account a qurey will run that will check the time of his last login and if any reminder that has been logged after the time of his login , if yes the reminders will get displayed .

Save the reminder in DB, and the login if login sucessfull, then get the reminder data from database and show.
 
Share this answer
 
You can add 2 extra column to your user table like Reminder_Text , isDisplayed

When an admin set the reminder for a particular user, update the user's these 2 rows , and set isDisplayed to false by default.

On each user login check for Reminder_Text value and isDisplayed value
if isDisplayed is false show ur alert message , and make this field true.

or simply you can create another table for this reminder and log your reminders there !!

Hope this helps.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900