Hi All,
I'm trying my hand at an ASP.Net page. I have a Calendar object that I want to use to assign values to any of 4 different text boxes. Each text box has a corresponding "Show Calendar" button. In the code for the button click I pass the current text box value to the calendars SelectedDate property. I also want to create an object reference or something that will allow me to reference that text box in the SelectionChanged code.
Here's the code in one of the "Show Calendar" buttons:
private void btnInitiated_Click(object sender, System.EventArgs e)
{
hideCalendars();
cldInitiated.Visible = true;
showCalendar(txtInitiated.Text);
textBoxToFill = txtInitiated;
}
I want to get the effect of the
textBoxToFill = txtInitiated
but with code that works (hehehe). This is so that I can referenc textBoxToFill in the SelectionChanged code. Each "Show Calendar" button will assign the corresponding text box to the textBoxToFill reference.
Aloha,
James