Click here to Skip to main content
15,885,910 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello ,
I am Making a thought of the day block I have the data in my database so when date changes the new thought should be retrieved from table & come in that block. so what should I do for it I am thinking making trigger for it please tell me how to make trigger that should fire everyday & retrieve data from table & send it to .aspx page?
I am using Sql Server 2005 & VS 2008.

additional infoemation question:


there is a .aspx page on which small say windows are there for news today's birthday, thought of the day so i want to show thought in that small window in aspx page.
I don't want to send that thought personally to each user. it's a common page
Posted
Updated 22-Feb-10 19:12pm
v2

1 solution

If your users are logging into the system, I assume you only want to show each user the "thought of the day" once each day...

In that case, simply have your aspx page make a call to the database passing the userid and today's date... if the user has previously received the thought of the day, do nothing, otherwise display the thought of the day to the user and insert a record into your database to record the userid and date.
 
Share this answer
 

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