Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Post
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
0
Reply
OnInserting
A M
Mar 5 2006 12:06 PM
2k
Reply
I have a form with a DetailsView to insert new records in my Access database. I want it to automaticly create a date and time and insert it when a new record is created. But I can't get the function OnInserting to work. I have a
SqlDataSourceCommandEventArgs
in my code behind file byt I cant get any date.
protected
void
DetailsView1_ItemInserting(
Object
sender,
SqlDataSourceCommandEventArgs
e)
{
e.Command.Parameters[
"@mydate"
].Value =
DateTime
.Now;
}
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
0
)
Next Recommended Forum
single main menu control usage in multiple forms
open new form and closing the previous one