Click here to Skip to main content
15,886,689 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have three different textboxs i want to fill these textboxs with different dates

how to fill date using popUp window which containing the calender control
Posted

1 solution

Write the event for calender control.
for 3 textbox ,you have to create threee calender control and use the below event to get the selectedDate into the textBox.

C#
protected void Calendar1_SelectionChanged(object sender, EventArgs e)
{
   
    TextBox1.Text = Calendar1.SelectedDate.ToString();
}




You can also use like this on your source page-

document.getElementById('textbox1').value = calendarControl.getDate();

Hope it helps.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900