Hi all,
I am new to asp.net programming and i am using asp.net calender control
the code tht i am using is
Protected Sub btn_dob_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btn_dob.Click
Try
If (txt_dob.Text.Trim() IsNot DBNull.Value) Then
Calender2.SelectedDate = Convert.ToDateTime(txt_dob.Text)
End If
Catch ex As Exception
End Try
Calender2.Visible = True
End Sub
I am using the following code at calender selection changed event
txt_dob.Text = Calender2.SelectedDate.ToString()
Calender2.Visible = False
I am getting the problem at Calender2.visible= true
as an exception like use new keyword at Calender2 but i have declared tht control earlier
any help is greatly appreciated.
thanks in advance.