|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Why error on an IF statemnet,
hi
can anyone tell me what im doing wrong as i keep getting error HTTP 500.100 - Internal Server Error - ASP error Microsoft VBScript compilation (0x800A03EE) Expected ')' /-----/----.asp, line 32, column 20 heres line 32 ' browse and display results <% if (MyRecordSet.Eof true)then <%Response.write("following result has been found)<br>") Else if (MyRecordSet.Eof false) then <%Response.Write("please enter a keyword)<br>") %> <% ENDif %> any help would be appreciated thanks |
|
#2
|
|||
|
|||
|
Read your private messages and tell me if the code is correct!
It should fix the error your having! Hope this helps! Sincerely Vlince |
|
#3
|
||||
|
||||
|
Your code is broken up strangely, and written wrong. Try this
Code:
<% if MyRecordSet.Eof = true then Response.write "following result has been found <br>" Else Response.Write "please enter a keyword <br>" 'you don't need the extra "if-then" b/c there are only 2 possible END if %> Your problem is too many parentheses, and your first line section has two "<%" tags, rather than a "<% %>" pair. HTH [edit] Stupid fast responding Vlince (jk)
__________________
--Dave-- U2kgSG9jIExlZ2VyZSBTY2lzLCBOaW1pdW0gRXJ1ZGl0aW9uaXMgSGFiZXM= |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > Why error on an IF statemnet, |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|