Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Save datetime
Message
De
25/02/2009 13:54:55
 
 
À
25/02/2009 10:49:57
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Divers
Thread ID:
01383958
Message ID:
01384136
Vues:
31
SqlDataSource2.UpdateParameters.Add("DateCompleted", DateTime.Now) ?

>Do you know the syntax for this?
>
>SqlDataSource2.UpdateParameters.Add("DateCompleted", Now())
>
>
>>Sorry, in your case you need a record rule. I'll post details a bit later.
>>
>>>>>Can someone tell me how to save the current datetime from an aspx page into a VFP database? I am trying
>>>>>
>>>>>
>>>>>asp:Parameter Name="datecompleted" Type="DateTime" DefaultValue='>%=Now()%<' 
>>>>>
>>>>>
>>>>>
>>>>>but it doesn't work. The error says the string is not recognized as a valid datetime.
>>>>>
>>>>>Thanks
>>>>
>>>>Just set the parameter in code behind, why do you need it in ASPX?
>>>>
>>>>BTW, which database we're talking about? May be you can just set it in the trigger instead?
>>>
>>>Its a VFP database, being edited via an aspx formview. If I create an update trigger with something like
>>>
>>>
>>>repl datecompleted with datetime()
>>>
>>>wouldn't that create an infinate loop?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform