CalicoCat
|
| Posted: 03/06/2005, 9:43 AM |
|
Hello (again) Everyone,
I'm relatively new with CCS but have quite a bit of experience progamming with other software/languages. I've done all the tutorials and am now trying to recreate the examples. In the Master-Employee example, I am trying to assign the emp_id to the Editable Grid's emp_id field, using ASP. The following code does not work when used in the 'Before Build Insert' event, but it works fine when used in the 'Before Show Row' event.
Dim current_emp
current_emp = CInt(Request.QueryString("emp_id"))
projects_employees.emp_id.Value = current_emp
I've converted the Hidden Text Box back to a regular Text Box to see when the emp_id value appears, and it only does so when this is used with 'Before Show Row'. Otherwise, I get an error message.
What am I doing wrong?
Thank you for your help.
|
|
|
 |
CalicoCat
|
| Posted: 03/06/2005, 10:44 AM |
|
I found the answer. The code should be;
Dim current_emp
current_emp = CInt(Request.QueryString("emp_id"))
projects_employees.datasource.emp_id.Value = current_emp
the 'datasource' was missing...
Cheers!
|
|
|
 |
|