Hi Community,
In this tutorial
http://www.developer.com/net/asp/article.php/3327181/Creating-a-Dropdown-Calendar-Control-for-ASPNET.htm
I need help to convert following code to C#. Following is the whole code.
Private Sub Calendar1_SelectionChanged(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles Calendar1.SelectionChanged
TextBox1.Text = Calendar1.SelectedDate.ToShortDateString()
Dim div As System.Web.UI.Control = Page.FindControl("divCalendar")
If TypeOf div Is HtmlGenericControl Then
CType(div, HtmlGenericControl).Style.Add("display", "none")
End If
End Sub
What is equivalent converted C# code for following block?
If TypeOf div Is HtmlGenericControl Then
CType(div, HtmlGenericCo ...
Go to the complete details ...