Hi every one,

I am unable to understand the fallowing code.

Sub page_load()
If calendar1.Selecteddate=DateTime.MinValue Then
calendar1.SelectedDate=calendar1.TodaysDate
End If
End Sub

Could any one explain me this please.

thaks.

Member Avatar for yerbol

The page loads and the following checking goes:
There is a calendar which has some preset minimal value, if this value is selected, then the selcet automatically changes to today's date/ If this is not clear enough, please PM

Hi yerbol,

Thanks giving explanation.


Thank you,
Aravind

Member Avatar for yerbol

You're welcome Aravind. Anytime... :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.