Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
Hi,
In my application, the admin deliver announcement for all users. My requirement is that i want, all the users are able to see that announcement for a specific time period. After that time period, the announcement will automatically delete. For this, in table i have created column like announcement,startdate and enddate.
 
Suggest me for the logic, how to implement in my application.
Posted 25-Oct-12 22:36pm
Edited 26-Oct-12 19:00pm
v3

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

1) Create a database table to hold the admin announcements.
2) Add a control to a page somewhere in your site that will show the announcements.
3) Load the announcements when a user requests the page and show them.
  Permalink  
Comments
NayakMamuni at 26-Oct-12 14:34pm
   
In table i create column like announcements,startdate and enddate. And i want that the user can see the announcements for a specific time period like between startdate and enddate. After enddate announcement will clear from user's view.

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

  Print Answers RSS
0 OriginalGriff 190
1 Jochen Arndt 165
2 PIEBALDconsult 150
3 BillWoodruff 148
4 DamithSL 140
0 OriginalGriff 5,695
1 DamithSL 4,591
2 Maciej Los 4,012
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,190


Advertise | Privacy | Mobile
Web01 | 2.8.141220.1 | Last Updated 27 Oct 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100