Hello,
I am using asp not asp.net please forgive me for posting in the .net section I did not see a plan asp...
But anyway..
I am trying to use response.write in a if statement, and I want it to output to a specific column in my table.. when I place the if statment in the section I want it and run it I get a syntax error..
Can you please help
my code is a follows for the if statement. I am pulling a result from the SQL server if it matches I have my first response if it does not I have my second response. it sounded simple to me but I am having a boohoo of a time.. Thanks for your help
<% if (answerRS.Fields.Item("q1").Value) = "1" then
Response.write = "Correct"
Else Response.Write = "Incorrect"
End If%>


Reply With Quote


Bookmarks