[thelist] ASP Select Form not auto-selecting

Anthony Baratta Anthony at Baratta.com
Thu Sep 25 23:25:46 CDT 2003


At 02:06 PM 9/25/2003, Rob Smith wrote:

>In this example the forms RepID is 92503 (today's date). After selecting
>this particular form I printed out:
>
>response.write request.form("Manager") & " "
>Managers.fields.item("RepID").value
>
>Low and behold my output is:
>92503 92503
>
>Yet... the test to compare these two to enable the "selected" feature,
>fails.

Trim your data:

e.g.

If Trim(request.form("Manager")) = 
Trim(Managers.fields.item("RepID").value) then


---
Anthony Baratta
President
Keyboard Jockeys

"Conformity is the refuge of the unimaginative."



More information about the thelist mailing list