开发者

ASP.net AccessDataSource Date Inserts

开发者 https://www.devze.com 2022-12-09 02:22 出处:网络
开发者_开发技巧I need to insert a row with a DATE value. How do I set its default value to Now() or similar?Unfortunately, the only way to set the default value of a AccessDataSource parameter to some
开发者_开发技巧

I need to insert a row with a DATE value. How do I set its default value to Now() or similar?


Unfortunately, the only way to set the default value of a AccessDataSource parameter to something variable is in the code-behind:

myAccessDataSource.InsertParameters("date").DefaultValue = DateTime.Now
0

精彩评论

暂无评论...
验证码 换一张
取 消