lamh56
Posts: 5
|
| Posted: 09/08/2006, 4:12 AM |
|
This should be very basic but I spent 2 hours already.
I have below URL link to a page:
http://192.168.4.200/itjob/location_record.asp?parrent_location_id=2
Then, on that page, I have a list box that should take value of "parrent_location_id" as default value.
And, I don't know how to specify in that listbox's default property.
I tried below:
parrent_location_id
"parrent_location_id"
$parrent_location_id
{parrent_location_id}
Nothing works.
So, what should I write?
Thanks,
Lam
|
 |
 |
peterr
Posts: 5971
|
| Posted: 09/08/2006, 10:46 AM |
|
This is automatic if you name your listbox "parrent_location_id".
You can test this here: http://examples.codecharge.com/RegistrationForm/Registration.php?state_id=1 http://examples.codecharge.com/RegistrationForm/Registr...php?state_id=10
(different state will be selected each time)
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
 |
 |
Lam
|
| Posted: 09/08/2006, 5:14 PM |
|
Hi,
Thanks for your help.
But , what if the correct syntax if I want to use the paramater passed by URL?
Thanks,
Lam
|
|
|
 |
peterr
Posts: 5971
|
| Posted: 09/09/2006, 11:20 AM |
|
See http://docs.codecharge.com/studio3/html/Components/Func...CCGetParam.html
So you would just put this in your control's Default Value property:
CCGetParam("parrent_location_id", Empty)
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
 |
 |
|