Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Createing a reference to an object
Message
De
02/11/2002 12:36:38
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Createing a reference to an object
Divers
Thread ID:
00718174
Message ID:
00718174
Vues:
64
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform