STEP 1
DRAG SCRIPT MANAGER ON YOUR PAGE
STEP 2
DRAG AND DROP TIMER ON YOUR ASP.NET PAGE
STEP 3
NOW DRAG A LABLE ON YOUR ASP.NET PAGE
SET ID OF LABLE : " lblDateToday"
NOW
lblDateToday.Text = System.DateTime.Now.ToShortDateString();
now put this in the timer event
public void TimerTime_Tick1(object sender, EventArgs e)
{
lblTime.Text = System.DateTime.Now.ToLongTimeString();
}
DRAG SCRIPT MANAGER ON YOUR PAGE
STEP 2
DRAG AND DROP TIMER ON YOUR ASP.NET PAGE
STEP 3
NOW DRAG A LABLE ON YOUR ASP.NET PAGE
SET ID OF LABLE : " lblDateToday"
NOW
lblDateToday.Text = System.DateTime.Now.ToShortDateString();
now put this in the timer event
public void TimerTime_Tick1(object sender, EventArgs e)
{
lblTime.Text = System.DateTime.Now.ToLongTimeString();
}
0 comments:
Post a Comment