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.

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..

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.