Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
OnTextChanged method does not fire
Message
De
29/12/2008 15:33:24
 
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
C# 2.0
Divers
Thread ID:
01369966
Message ID:
01369985
Vues:
9
>Hi,
>
>I have added code in the PAGE_LOAD method of the page to have a textbox post back and to fire method on change. The code is as following:
>
>
>MyTextBox.Attributes.Add("OnTextChanged", "MyTextBox_TextChanged()");
>MyTextBox.AutoPostBack = true;
>
>
>The page does post back when the entry in the text box MyTextBox changes but the method MyTextBox_TextChanged never fires. Can you see what maybe missing in my code?
>
>Thank you in advance for any help.

Why not just use:
MyTextBox.TextChanged += new EventHandler(MyTextBox_TextChanged);
instead....
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform