Posted on: 3/23/2011 2:41:39 AM | Views : 279

hi
pls give me c# code of this vb.net code.
thanks.
code is :
Sub selYear()
    Dim intYear As Integer
    'Year list can be changed by changing the lower and upper
    'limits of the For statement   
    For intYear = DateTime.Now.Year - 20 To DateTime.Now.Year + 20
         drpCalYear.Items.Add(intYear)   
    Next
    'Make the current year selected item in the list
    drpCalYear.Items.FindByValue(DateTime.Now.Year).Selected = True
End Sub
...

Go to the complete details ...