Missing value from variable

后端 未结 3 974
梦谈多话
梦谈多话 2021-01-16 15:01

I\'m trying to populate a

提交评论

  • 2021-01-16 15:47

    Try this:

    Dim a
    Do while not rows.Eof
        a = rows.Collect("specialty")
        Response.Write("<option value=""" & Replace(a, """", "&quot;") & """>" & a & "</option>")
        rows.MoveNext
    Loop
    
    0 讨论(0)
  • 2021-01-16 15:48

    What is the datatype of specialty ?

    try this:

        DO WHILE NOT rows.EOF
        specialty = rows("specialty")
             %>  
                <option value="<%=specialty%>"><%=specialty%></option>
             <%    
             rows.moveNext
        LOOP
    
    0 讨论(0)
  • 提交回复
    热议问题