I'm writing a small app to track the assets within our organization. When editing an existing record (in a detailsview form) I have three fields: Purch_Month, Purch_Year and Repl_Year.
The first two (Purch x 2) are already populated when the record is created outside the app. When editing the record though, I want the form to do one of two things:
1) if the Repl_Year is NULL --> Set Repl_Year = Purch_Year + 3.
2) if Purch_Year is changed, it triggers an autopostback, which should trigger an eval on Repl_year to update that value as is example 1 (ie, Set Repl_Year = Purch_Year + 3).
I think I know how to do he page load triggers etc, but I really have no ide on how to address the edititemtemplatefield.
Any assistance (or even a mention of a better path to the same ends) would be appreciated.
Thanks!
Jim
The first two (Purch x 2) are already populated when the record is created outside the app. When editing the record though, I want the form to do one of two things:
1) if the Repl_Year is NULL --> Set Repl_Year = Purch_Year + 3.
2) if Purch_Year is changed, it triggers an autopostback, which should trigger an eval on Repl_year to update that value as is example 1 (ie, Set Repl_Year = Purch_Year + 3).
I think I know how to do he page load triggers etc, but I really have no ide on how to address the edititemtemplatefield.
Any assistance (or even a mention of a better path to the same ends) would be appreciated.
Thanks!
Jim