TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
A M
NA
1
0
OnInserting
Mar 5 2006 12:06 PM
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;
}
Reply
Answers (
0
)
single main menu control usage in multiple forms
open new form and closing the previous one