hi,
i created a gridview in ASP, where as i kept one column as "last updated date" of an employee.
in aspx code i wrote like dis cmd.Parameters.Add("@LastUpdatedDate", DateTime.Now);
wen ever i inserting data the gridview is showing current date and time.
wen ever i try to update the date and time are not yet changing.
dis is the query i wrote
SelectCommand="SELECT * FROM [Employees] order by lastupdateddate desc"
UpdateCommand="update [Employees] Set [EmpId]=@EmpId,[FirstName]=@FirstName,[MI]=@MI,[LastName]=@LastName,[DOB]=@DOB,[DOJ]=@DOJ,[EmailP]=@EmailP,[EmailW]=@EmailW,[PhoneM]=@PhoneM,[PhoneH]=@PhoneH,[PhoneW]=@PhoneW,[Address]=@Address,[Country]=@Country,[State]=@State,[City]=@City where [EmpId]=@EmpId"
pls reply,

Amit Kumar SinghRank #562 · 4.3K reputationPosted Mar 1, 2016, 3:57 AM EST
Srinivas Rao53 reputationPosted Mar 1, 2016, 4:35 AM EST
Amit Kumar SinghRank #562 · 4.3K reputationPosted Mar 1, 2016, 5:23 AM EST
Upendra Pratap ShahiRank #329 · 7.5K reputationPosted Mar 1, 2016, 7:42 AM EST
GetDate()
Amit Kumar SinghRank #562 · 4.3K reputationPosted Mar 1, 2016, 8:55 PM EST
Upendra Pratap ShahiRank #329 · 7.5K reputationPosted Mar 3, 2016, 4:29 AM EST