Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Parameterized Query
Message
 
 
À
21/09/2009 23:16:11
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
01425528
Message ID:
01425537
Vues:
25
>>Hi Rich,
>>
>>1. Try to set AutoPostBack property of the DropDown to true
>>
>Thanks for the reply. Unless the property is case-sensitive, AutoPostBack is being set to true.
>
>
>>2. If, for some unknown reason, declarative syntax would not work for you, you can always use code behind and selecting event of SQLDataSource to set your parameter.
>>
>These are training tools for me, not production code. So I have the luxury of trying to do it "right" rather than having to get it done now. My impression is that it is preferable to set up the parameterized query rather than trying to do it in code. Would you agree or do it differently?
>
>

Yes, declarative syntax in ASPX is supposed to work as well, I just gave an alternative solution in case it would not work for some unknown reason.


>>Check this blog
>>http://blogs.lessthandot.com/index.php/WebDev/WebDesignGraphicsStyling/setting-sqldatasource-parameter-from-the
>
>Thanks. I'll do that

Did you try to run SQL Profiler and check, what exactly is being sent to SQL Server? Perhaps there is some length mismatch or something along the lines?
If it's not broken, fix it until it is.


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

Click here to load this message in the networking platform