0

I have a details view and SQL data source. In the details view i can fill the form and add the data to the database and then view this database in another page.

I have a "Date" row in the details view where must insert the date info. I want this to be automatically added to the database without requiring the users to enter them. I want to remove the date row and add the date info with "DateTime.Now" .

How can i do that?

Thanks.

2
Contributors
1
Reply
2
Views
7 Years
Discussion Span
Last Post by dnanetwork
0

simple ...
in database..you might be having a DateTime Column..
in which SET the property called DefaultValue or Binding = getdate()

all set..now even if the user does not pass the date via your submission
form, database will automatically add the current date and time

hope that helps..

Edited by dnanetwork: n/a

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.