Microsoft VBScript compilation (0x800A0401)
priyanka.j | Posted 6:19am 9. October 2009 Server Time |
hi all !!...im trying to use html tag inside asp code and then asp code again inside html tag....to give value to radio button....and getting following error....
Microsoft VBScript compilation (0x800A0401)
Expected end of statement
Response.write "<input type='radio' name='a' value=<% rs("A")
---------------------------------------------------------^
this is th following code snippet:
<Form name="f1" method=post action="test1.asp?val=<%=iFlag+1%>">
<%
Response.write rs("Question")&"<br>"
Response.write "<input type='radio' name='a' value='<% rs("A")%>'><br>"
' Response.write "<input type='radio' name='b' value='<%rs("B")%>'><br>"
' Response.write "<input type='radio' name='c' value='<%rs("C")%>'><br>"
' Response.write "<input type='radio' name='d' value='<%rs("D")%>'><br>"
%>
im trying to write a code for online test...questions hv 4choices,radio buttons....fetching them from the database....plzzz help !! |