Reply
Trying to insert Inserting 2 different ASP statements into one ASP file
Old 06-24-2005, 02:33 PM Trying to insert Inserting 2 different ASP statements into one ASP file
Junior Talker

Posts: 4
Hi,

I am new to ASP so please be gentle with me...

I have two ASP statements (<% , %>) that I would like to insert into one ASP file. One of the statements is already inserted in the file and works successfully.
However, when I insert the second ASP statement, the page comes up with an error;-

"Microsoft VBScript compilation error '800a0411'

Name redefined "

I am pretty sure I get this error because both statements are conflicting with one another.
I also can't combine the two statements as I use a DSN connection for one, and a DSN-less connection for another and I connect to 2 different databases.

How might I be able to include both ASP statements within the single ASP file?

Any help is gratefully appreciated.

Regards

James
redhillccwebmas is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 06-24-2005, 02:39 PM
chrishirst's Avatar
Super Moderator

Posts: 13,469
Location: Blackpool. UK
there is a variable DIMmed twice.

easiest way is a third include with the variable names in. That way it can be used with any combination of the includes.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 06-24-2005, 04:34 PM
Junior Talker

Posts: 4
Please could you rephrase so that I can understand it a bit more - as I say, I am very new to ASP. Do you mean that I should include something that goes at the top of the page that declares the variables used?

Thanks for your help

James
redhillccwebmas is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Trying to insert Inserting 2 different ASP statements into one ASP file
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.11226 seconds with 12 queries