
November 1st, 2009, 09:05 AM
|
|
Contributing User
|
|
Join Date: May 2008
Posts: 117
  
Time spent in forums: 23 h 21 m 18 sec
Reputation Power: 3
|
|
|
ASP.Net/C# - Inserting multiple records based on dates
hi
i have a customer form whose data is inserted into a table customer in a sql server .
The customerid field is an identity field . My query is this:
i have two date fields customer date and customer return date.
the customer return date field shows up only when a check box chkcustomerreturn is checked.
so if user enters customerdate as 10/25/2009 and customer returndate as 10/28/2009 and for the checkbox is checked
i want to insert three new records with the other information being same except for the customerdate field in the
table customer having the dates for the records as 10/25/2009,10/26/2009,10/27..10/28/2009.
if the checkbox was not checked since they can see only one date text field it would be only one record in the backend.
i hope you got what i want to say
|