Peter Jones
|
| Posted: 12/04/2002, 6:09 AM |
|
IS THIS POSSIBLE
I have created a form that populates stored values by assigning labels the value of the database. As this keeps the form looking nice, and does not confuse the user having input boxes over the screen.
However her is my problem, I need to write a file to server this is not a problem, but when I use Label1.value the file has an empty value, when infact the Label1 has a displayed value on the form.
If I convert the Label1 to a textbox then it retains the value when writing.
So Can I get access to the assigned Label, rather than a textbox.
Any help appreciated, as it would help my form look good.
|
|
|
 |
AndrewI
|
| Posted: 12/04/2002, 7:56 AM |
|
No, a label won't store a value in a form.
Use hidden text boxes instead - they function just the same as the textbox you tried, but aren't visible. You'll still need the labels to display the value if you do this, though.
Andrew
|
|
|
 |
Peter Jones
|
| Posted: 12/04/2002, 10:42 AM |
|
Hidden Fields are not working.
The page has 4 forms, 3 of these have hidden fields that contain the value that is needed, for 4 contain labels that are assigned in before show event for form 4. if I try to write the hidden fields from the 1 - 3 forms the result is empty, yet the displayed label contains the value. If I change the labels to textbox in form 4 then the value is not empty.
Very strange, don't understand what is going on here
|
|
|
 |
JD
|
| Posted: 12/04/2002, 10:52 AM |
|
Have you tried using SetValue()
(PHP)
global $formname;
$formname->hiddenfieldname->SetValue($formname->label->GetVaule());
I think you replace the -> with .'s in asp.
Just a thought.
|
|
|
 |
|