brandy4678
Posts: 7
|
Posted: 09/27/2010, 12:45 PM |
|
I'm working in ASP, with Codecharge 4.2.00.040
I used the Example Pack Code (EditableGridAddButton), which i have working fine.
But, i have 4 textboxes that are hidden that i need to add a value for after a listbox value changes. If I display the textboxes on the screen, I have been able to make them fill, but if i leave them hidden, no matter where i put code, they will not fill, it leaves a null value in the db.
Currently I have this code in BeforeExecuteUpdate and BeforeExecuteInsert
If Departments.DayofWeek.value = "" then
departments.Employee.value = ""
departments.EmployeeNo.value = ""
departments.WeekEndDate.value = ""
departments.HomeBusUnit.value = ""
else
departments.Employee.value = CCDLookup("EmpName", "Employees", "id=" & Session("UserId"), DBTimeSheets)
departments.EmployeeNo.value = CCDLookup("EmpNo", "Employees", "id=" & Session("UserId"), DBTimeSheets)
departments.WeekEndDate.value = Request.QueryString("PayRollEndDate")
departments.HomeBusUnit.value = CCDLookup("EmpHBU", "Employees", "id=" & Session("UserId"), DBTimeSheets)
end if
Thanks for any help.
Brandy
_________________
Brandy
_________________
Brandy |
|
|
|