jcarlos
Posts: 16
|
Posted: 10/31/2014, 1:55 AM |
|
Hi I'm trying to create 2 forms, which should link from one another text box to textbox
From "employee form" I have "emp_num textbox" that should connect to detail form which have emp_num as well, once I click "detail form", the emp number I entered in "employee form" should automatically show in the emp_num textbox in detail form
Thank you
Using ASP and SQL Server
|
|
|
eratech
Posts: 513
|
Posted: 11/01/2014, 9:14 PM |
|
Sounds like you want to use javascript on the employee.emp_num change event to take that value and put it in detail.emp_num?
If you are using jquery (or it is the default in new CCS5 projects), some client side Custom Code like:
var empnum = $("#employeeemp_num").val();
$("#detailemp_num").val(empnum);
Obviously, adjust the textbox names to be the ID on your forms
Eric
_________________
CCS 3/4/5 ASP Classic, VB.NET, PHP
Melbourne, Victoria, Australia |
|
|
|