i have calendar placed on my form
i have one textbox n a button("Show date")
When the user enters date in the textbox say 29/07/2008 and click
on the show date button the calendar should show / reflect that date..
how to achieve this...i knw...it ll b simple but am not getting it...
i am also getting string to date conversion error n what not...
plz help me out...
protected void cmddate_Click(object sender, EventArgs e)
{
string mydate;
mydate = txtdate.Text;
//HERE IS GET ERROR AS STRING WAS NOT RECOGNISED AS A VALID DATETIME..
Calendar1.VisibleDate = Convert.ToDateTime(mydate);
}
AM I USING CORRECT PROPERTY? PLZ SUGGEST
cya
Rohan