Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Birthdays in ASP.NET

Reply
Thread Tools

Birthdays in ASP.NET

 
 
Mark Scott
Guest
Posts: n/a
 
      08-31-2007
Hi

I have limited experience with ASP.NET but have had an idea for a
functionality I would like to add to our intranet site.

I would like to put an announcement on the front page when a member of staff
has a birthday by searching through the staff db (around 250) for a match of
todays date.

I am not expecting a full listing but any pointers would be welcomed (I
already have the connect string I can use from another form)

Regards

Mark

 
Reply With Quote
 
 
 
 
Mark Rae [MVP]
Guest
Posts: n/a
 
      09-01-2007
"Mark Scott" <mark-> wrote in message
news:19A604FE-A910-43BB-B752-...

> I have limited experience with ASP.NET but have had an idea for a
> functionality I would like to add to our intranet site.
>
> I would like to put an announcement on the front page when a member of
> staff has a birthday by searching through the staff db (around 250) for a
> match of todays date.
>
> I am not expecting a full listing but any pointers would be welcomed (I
> already have the connect string I can use from another form)


Fetching the data is simple enough... You don't specify which RDBMS you're
using, so I'll assume you're using SQL Server....

SELECT * FROM StaffTable
WHERE DAY(DateOfBirth) = DAY(getdate())
AND MONTH(DateOfBirth) = MONTH(getdate())

Fetch the data into an ADO.NET object (e.g. DataSet or SqlDataReader) and
iterate through it as required...


--
Mark Rae
ASP.NET MVP
http://www.markrae.net

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
SOFTWARE - Remind me of birthdays, anniversaries etc? John Computer Support 7 11-19-2007 03:52 AM
Reminders of Birthdays, Anniversaries etc - By E-mail? John Computer Support 3 03-02-2006 10:43 AM
OT: Birthdays Briscobar MCSE 17 09-30-2005 05:51 PM
OT: Becuase Fris is mentioning Birthdays early... Neil MCSE 7 03-21-2005 10:03 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57