Connecting Tech Pros Worldwide Help | Site Map

how to show birthday alarm in asp.net???

Newbie
 
Join Date: Aug 2009
Posts: 1
#1: Aug 4 '09
hi all,
I am using ASP.NET in my website.I have to show a birthday alarm to user when he/she login for that day only.I am using Sqlserver 2005.I will get birthdate from database and compare it to current date by using query.

but how to display it i m not getting as i m new to asp.net.
Frinavale's Avatar
Site Moderator
 
Join Date: Oct 2006
Location: The Great White North
Posts: 5,066
#2: Aug 4 '09

re: how to show birthday alarm in asp.net???


Use a Label, Localize, Textbox or any other ASP.NET control that you can use to display text. Set that control's Text property to the message you want to display.

An example of setting a Label's text box:

ASP code
Expand|Select|Wrap|Line Numbers
  1.  
  2. <asp:Label id="birthdayMessage" runat="server" />
  3.  
VB.NET code (server code...you might be using C#...if so add a semicolon ";"to the end of the following statement):
Expand|Select|Wrap|Line Numbers
  1. birthdayMessage.Text = "Happy Birthday!"
  2.  
I'm not entirely sure where you're having problems. This is one of the first things that you would learn to do in an asp.net "hello world" tutorial.
Reply

Tags
asp.net, javascript