jimmythegeek
Programmer
I have VBScript that is pulling data from a SQL Server Database. Everything works fine except for one field. It is a smalldatetime field in SQL Server, and when I Response.Write the value from the table, I get the correct value (4/1/01).
However, when I Response.Write Request.Form("txtPhaseDate", I get this value
(, 4/1/01).
The following is the script that I have in the middle of a table:
=====
Response.Write "<td>Target Completion (current phase):</td>"
Response.Write "<td><Input Type='Text' Name='txtPhaseDate' Size=8 Class='Typical' value='" & rs("PhaseDate" & "'></td></tr>"
=====
I have this one below it, and it works just fine:
=====
Response.Write "<td>Target Completion (project):</td>"
Response.Write "<td><Input Type='Text' Name='txtProjCompDate' Size=8 Class='Typical' value='" & rs("ProjCompDate" & "'></td></tr>"
=====
If the value is correct in the table, why would it be showing the value preceded by a comma and a space on the form ???
Thanks in advance,
Jim Lunde
compugeeks@hotmail.com
Custom Application Development
However, when I Response.Write Request.Form("txtPhaseDate", I get this value
(, 4/1/01).
The following is the script that I have in the middle of a table:
=====
Response.Write "<td>Target Completion (current phase):</td>"
Response.Write "<td><Input Type='Text' Name='txtPhaseDate' Size=8 Class='Typical' value='" & rs("PhaseDate" & "'></td></tr>"
=====
I have this one below it, and it works just fine:
=====
Response.Write "<td>Target Completion (project):</td>"
Response.Write "<td><Input Type='Text' Name='txtProjCompDate' Size=8 Class='Typical' value='" & rs("ProjCompDate" & "'></td></tr>"
=====
If the value is correct in the table, why would it be showing the value preceded by a comma and a space on the form ???
Thanks in advance,
Jim Lunde
compugeeks@hotmail.com
Custom Application Development