blah blah blah is here! blah blah » Close

up0down
link

Hi guys!
I'm new on .NET technology, i have label control on my page and i want to display today's date in that label control using codebehind file .cs
plz. help me out...
thanx
come2u

last answered 2 years ago

1 answers

up0down
link

In some suitable method (maybe Page_Load() ) insert code like this:
aLabel.Text = DateTime.Now.ToString();

up0down
link

label1.Text = DateTime.Now.ToShortDateString();

This post was imported from csharpfriends, if you have a similiar question please ask it again.

All previous members have been migrated, hope you enjoy the new platform!

Feedback