Hi,
I had some code generated by ultradev and I'm trying to put it inside a conditional statement. Because it has some asp brackets within it, I can't seem to get it to work.
This is the code:
<A HREF="allrec.asp?<%= MM_keepNone & MM_joinChar(MM_keepNone) & "Qid2=" & RS_password.Fields.Item("Qid2"
.Value%>"><b>Final Review & Submit</b></A>
I'd like to be able to do this:
<% if field1 = "A" then
<A HREF="allrec.asp?<%= MM_keepNone & MM_joinChar(MM_keepNone) & "Qid2=" & RS_password.Fields.Item("Qid2"
.Value%>"><b>Final Review & Submit</b></A>
else
response.write("You have not entered and A in field 1"
end if%>
I get an error, I believe, because of the inner bracketing.
Suggestions?
Thanks
I had some code generated by ultradev and I'm trying to put it inside a conditional statement. Because it has some asp brackets within it, I can't seem to get it to work.
This is the code:
<A HREF="allrec.asp?<%= MM_keepNone & MM_joinChar(MM_keepNone) & "Qid2=" & RS_password.Fields.Item("Qid2"
I'd like to be able to do this:
<% if field1 = "A" then
<A HREF="allrec.asp?<%= MM_keepNone & MM_joinChar(MM_keepNone) & "Qid2=" & RS_password.Fields.Item("Qid2"
else
response.write("You have not entered and A in field 1"
end if%>
I get an error, I believe, because of the inner bracketing.
Suggestions?
Thanks