Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

ASP.NET Forum


You are currently viewing our ASP.NET Forum as a guest. Please register to participate.
Login



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

Posts: 4
Trades: 0
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
 
 
Register now for full access!
Old 06-24-2005, 03:39 PM
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,519
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
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!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 06-24-2005, 05:34 PM
Junior Talker

Posts: 4
Trades: 0
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 Search this Thread
Search this Thread:

Advanced Search

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

BB 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.11602 seconds with 12 queries