Hi
I want to display 1 textbox & a calendar . User should select date from calendar & that value is stored in textbox .
Thanks
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
MuthuMari MPosted Apr 5, 2012, 5:13 AM
aspx
in cs file.
if (!IsPostBack)
{
TextBox1.Text = Calendar1.TodaysDate.Date.ToShortDateString();
}
protected void Calendar1_SelectionChanged(object sender, EventArgs e)
{
TextBox1.Text = Calendar1.SelectedDate.Date.ToShortDateString();
}
Thanks.
If this post is useful then mark it as "Accepted Answer"
SenthilkumarPosted Apr 3, 2012, 10:17 AM
Place this in the .aspx page.
Code File: