New to ASP here. Been used to programming in C++ so I try to make everything usable. OK, here is the problem:
I am creating a search page (search1.asp)
FORMAT of page:
<!-- include files for globals -->
html tags
body
<!-- include a file that contains the search table (consists of combo boxes and submit buttons) -->
footer
<!-- include file to destroy connections -->
Once submit is pressed on any of the buttons, it goes to a complete asp page (search2.asp). No html tags at all. This page is basically responsible for creating the proper queries. Then it redirects to a page with the results and another set of searches (something we call a FILTER filter.asp)
Well, that said, my problem lies in search2.asp. When I post to it, it gives a syntax error. Considering this asp file starts with
<%@ Language=VBScript %>
<!-- include file="globals.inc" -->
<%
Dim count 'As Integer
blah blah blah code
%>
THERE IS NO SYNTAX ERROR ON THIS PAGE! I checked it all! But somehow the error says
Syntax error
Dim count 'As Integer
-^
I programmed in Visual Studio before with C++ and sometimes I get bogus errors from it and all I do is copy everything from that page, delete it, create a new one, name it the same and paste the stuff. Then the error disappears. Tried that but didnt work. I am out of options. Is there something I am missing here?
Thank you for the help in advance
-Feryl
--> Just a silly software engineer wannabee.
If you feel a post has been helpful to you, click on the link at the bottom of their post to cast a vote for "TipMaster Of The Week". You don't need to be the one who asked the question to vote.
I am creating a search page (search1.asp)
FORMAT of page:
<!-- include files for globals -->
html tags
body
<!-- include a file that contains the search table (consists of combo boxes and submit buttons) -->
footer
<!-- include file to destroy connections -->
Once submit is pressed on any of the buttons, it goes to a complete asp page (search2.asp). No html tags at all. This page is basically responsible for creating the proper queries. Then it redirects to a page with the results and another set of searches (something we call a FILTER filter.asp)
Well, that said, my problem lies in search2.asp. When I post to it, it gives a syntax error. Considering this asp file starts with
<%@ Language=VBScript %>
<!-- include file="globals.inc" -->
<%
Dim count 'As Integer
blah blah blah code
%>
THERE IS NO SYNTAX ERROR ON THIS PAGE! I checked it all! But somehow the error says
Syntax error
Dim count 'As Integer
-^
I programmed in Visual Studio before with C++ and sometimes I get bogus errors from it and all I do is copy everything from that page, delete it, create a new one, name it the same and paste the stuff. Then the error disappears. Tried that but didnt work. I am out of options. Is there something I am missing here?
Thank you for the help in advance
-Feryl
--> Just a silly software engineer wannabee.
If you feel a post has been helpful to you, click on the link at the bottom of their post to cast a vote for "TipMaster Of The Week". You don't need to be the one who asked the question to vote.