Argument d'UpdateCommand non reconnu
Comment puis-je formater mon argument d'UpdateCommand pour que Update() le reconnaisse comme une chaîne UpdateCommand ordinaire.
La syntaxe de l'argument retourné est correcte:
"UPDATE MaTable SET AnneeChoisie='2007-2008',SemaineChoisie='1',MatchUpChoisi='A'"
C'est Update() qui fait des siennes.
Code:
1 2 3 4 5 6 7 8 9
|
<script runat="server">
Sub Click_MatchChoisi(ByVal sender As Object, ByVal e As System.EventArgs)
Dim MonBouton As Button = CType(sender, Button)
Dim argument As String = MonBouton.CommandArgument
ADSMatchChoisi.UpdateCommand = argument
ADSMatchChoisi.Update()
End Sub
</script> |