This topic is locked

Update fields during add/edit

6/19/2007 7:22:45 AM
ASPRunnerPro General questions
C
carlo author

Hi
I need some help:
I have a table LIST_PRICE with Code,Description,Price
I Have also another table ORDER with Customer_ID, Item_number, Code, Description , Quantity, Price
I use during add/edit to using DropDown list (ajax version..) for Code

I need to have populate the other field (Description,Price ) from LIST_PRICE table but i need also to edit them

also, offcourse , to edit Quantity field
I understand that , may be , i need to add some control in event section (BEFORE ADD for example) , but events are called only by click on save button or by press the enter key.
some idea ?
how to control ENTER KEY inside javscript of SAVE BUTTON ? To set savebutton to work only by click ?
to set a session value , inside only on add/edit page , that it set to zero by ONLOAD event , and set to one by clicking on SAVE BUTTON ?
or other ideas ?
Thank you in advance.
Carlo