I have asp questions to response.write
I am using asp not asp.net please forgive me for posting in the .net section I did not see a plan asp...
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"
take out the equal signs, it should be Response.write("Correct")
new to programming but getting ther
I tried what you suggested, and I get a error now:
Microsoft VBScript compilation Error '800a03ea'
/smpx/smpxresul3.asp, line 69
There is Triangle underneath the Else too..
On line 69 I have this piece of code
Else Respoonse.write "Incorrect"
IF you have any other ideas please let me know..
Hi mwrightladhs use
By jatinder_raheja in forum VB Classic
Last Post: 06-02-2005, 03:22 AM
Last Post: 01-09-2003, 09:42 PM
By dandy in forum ASP.NET
Last Post: 08-27-2001, 04:00 PM
By Keith Franklin, MCSD in forum Talk to the Editors
Last Post: 09-27-2000, 11:48 AM
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center