I have something like this....
ASP part of page:
SqlSrtr = Select ChkBox1, ...More... From Table Where....
rs.Open SqlStr,Connection,3,1
If rs.RecordCount > 0 Then
gChkBox1 = ddCursor("ChkBox1"
...More...
End If
If gChkBox = 1 Then
gCheckBoxVal = "CHECKED"
Else
gCheckBoxVal = ""
End If
rs.Close
Right?? Nothing wrong with this, the DB will return 1 or 0 letting me know all the values I need when I fill the page.
HTML Part...
<INPUT Name="Check1" Type="checkbox" Value="1" <%=gCheckBoxVal%> onClick="jFunc(this.value);"> Click Me
I keep on getting a Type mismatch: '[string: "CHECKED"]' errror.
Logically this should work. Whenever the value from the DB is 1 then the string's value is CHECKED. That value is then plunked into the HTML like any other attribute - value, size, maxlength, whatever. The CHECKED string should sit in there and behave as it was hard coded in there. What am I missing?/Not Seeing? Any help would be great.
ASP part of page:
SqlSrtr = Select ChkBox1, ...More... From Table Where....
rs.Open SqlStr,Connection,3,1
If rs.RecordCount > 0 Then
gChkBox1 = ddCursor("ChkBox1"
...More...
End If
If gChkBox = 1 Then
gCheckBoxVal = "CHECKED"
Else
gCheckBoxVal = ""
End If
rs.Close
Right?? Nothing wrong with this, the DB will return 1 or 0 letting me know all the values I need when I fill the page.
HTML Part...
<INPUT Name="Check1" Type="checkbox" Value="1" <%=gCheckBoxVal%> onClick="jFunc(this.value);"> Click Me
I keep on getting a Type mismatch: '[string: "CHECKED"]' errror.
Logically this should work. Whenever the value from the DB is 1 then the string's value is CHECKED. That value is then plunked into the HTML like any other attribute - value, size, maxlength, whatever. The CHECKED string should sit in there and behave as it was hard coded in there. What am I missing?/Not Seeing? Any help would be great.