Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Going to next page
Message
 
 
À
09/10/2009 18:10:27
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
01427461
Message ID:
01428599
Vues:
31
>I can see SqlDataSource1_Selecting executing when the form starts. However, when I put something in the textbox, this method doesn't get called. I tried putting
>SqlDataSource1_Selecting(sender, e )
in the textbox_TextChanged method, but this results in an error about being unable to cast into System.Web.UI.WebControls.SqlDataSourceSelectingEventArgs.
>
>Assuming that I should be calling the Selecting event from the textbox, what arguements should I be providing? If the assumption is incorrect, how do I call the Selecting event when I exit the textbox?

Alternatively, can you set AutoPostBack property of the textbox to true? If you do this, you would not need to call any code from your textbox to refresh the information after you pressed Enter.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform