Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to fire OnTextChanged in Submit method?
Message
De
29/12/2008 16:38:59
 
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
C# 2.0
Divers
Thread ID:
01370003
Message ID:
01370006
Vues:
20
This message has been marked as the solution to the initial question of the thread.
>I have a textbox that fires when user changes the entry. The OnTextChanged method calls database and validates that the entry exist in the database. However, the user may not change the default entry in this text box (the text box gets a default entry from a cookie) and simply click on Submit. I need to call this OnTextChanged method in the Submit method. The following is the top line of the method:
>
>
>public void txtCostCenter_TextChanged(object sender, System.EventArgs e)
>
>
>In order to call this method in the Submit I need to pass the parameters (that I don't even use). How can I pass some dummy parameters that would satisfy the compiler in terms of type of parameters?
txtCostCenter_TextChanged(new object(),new EventArgs());
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform