A
Ankit Aneja
i am displaying days of month
and want that today day should be selected by default how can i do that
DateTime str;
str=DateTime.Now;
int DayToday=str.Day;
for(int i=1;i<=31;i++)
{
DropDownList1.Items.Add(i.ToString());
}
and want that today day should be selected by default how can i do that
DateTime str;
str=DateTime.Now;
int DayToday=str.Day;
for(int i=1;i<=31;i++)
{
DropDownList1.Items.Add(i.ToString());
}