Ask a Question related to ASP Database, Design and Development.
-
Type mismatch when using Server.Execute?
Whe I replace: <!--#include file="utility.asp"-->
With
<% Server.Execute "/dev/1/utility.asp" %>
I get a 'type mistmatch error on my connection string 'GetConnection'.
Why would this be so if server.execute is including the same file as the
include file in the same directory...?
Thanks
Jason
Guest
-
Server.Transfer returning Type Mismatch: 'LBound'
Hi all I'm having problems transferring form values from one page to the next. I have a welcome page that has a User Login server behaviour and... -
Type mismatch?
Hi i'm getting a type mismatch error, anyone tell me why pls? conn.Execute "DELETE FROM Bmemo WHERE (tDate <= '" & date() & "')" tDate is a... -
Type Mismatch
I'm at my wits end here. I am getting type mismatch error in a ASP page when I try to multiply decimals*integers. This shouldn't be this difficult.... -
Type mismatch in expression
Dear anyone, I used the wizard to make a form, but when I try to go from design view to form view an eooro message comes up "Type mismatch in... -
Type Mismatch again
Hi, One page passes a strIssueNo to another, so on the 2nd page: Dim IssueNo IssueNo = Request.Item("strIssueNo") This 2nd page is designed... -
Aaron [SQL Server MVP] #2
Re: Type mismatch when using Server.Execute?
> Whe I replace: <!--#include file="utility.asp"-->
You realize those are not necessarily the same path, right? Why did you add>
> With
>
> <% Server.Execute "/dev/1/utility.asp" %>
/dev/1/ to the server.execute call?
I think you're confusing the roles of #include vs. server.execute.> I get a 'type mistmatch error on my connection string 'GetConnection'.
Server.Execute goes out and runs a script file. Any variables created there
are not kept in memory and the resuming portion of the calling script is not
going to be aware of them.
My suggestion: stick to #includes, you're using those for the right reasons.
I don't think you're sure why you even changed it from #include to
Server.Execute.
--
[url]http://www.aspfaq.com/[/url]
(Reverse address to reply.)
Aaron [SQL Server MVP] Guest
-
Jeff Cochran #3
Re: Type mismatch when using Server.Execute?
On Mon, 9 Aug 2004 12:20:21 -0400, <jason@catamaranco.com> wrote:
The simple explanation is that something in your utility.asp needed>Whe I replace: <!--#include file="utility.asp"-->
>
>With
>
><% Server.Execute "/dev/1/utility.asp" %>
>
>I get a 'type mistmatch error on my connection string 'GetConnection'.
>
>Why would this be so if server.execute is including the same file as the
>include file in the same directory...?
something in the asp file that included it. By doing an execute you
don't have that soemthing.
Now as to what that something might be, we couldn't tell without some
code, which you didn't provide.
Jeff
Jeff Cochran Guest
-
Re: Type mismatch when using Server.Execute?
Ok, they are the same path, I was experiment with relative and virtual
paths...
The reason I attempted a server.execute was based on the possibility of my
other sub-domains on the same server consuming this file..
However, I realise a virtual include is probably the best route as it
appears from what you told me that I cannot carry declared variables over to
the file that consumes it, right?
- Jason
"Aaron [SQL Server MVP]" <ten.xoc@dnartreb.noraa> wrote in message
news:eMfhusjfEHA.720@TK2MSFTNGP11.phx.gbl...add>> > Whe I replace: <!--#include file="utility.asp"-->
> >
> > With
> >
> > <% Server.Execute "/dev/1/utility.asp" %>
> You realize those are not necessarily the same path, right? Why did youthere> /dev/1/ to the server.execute call?
>>> > I get a 'type mistmatch error on my connection string 'GetConnection'.
> I think you're confusing the roles of #include vs. server.execute.
> Server.Execute goes out and runs a script file. Any variables creatednot> are not kept in memory and the resuming portion of the calling script isreasons.> going to be aware of them.
>
> My suggestion: stick to #includes, you're using those for the right> I don't think you're sure why you even changed it from #include to
> Server.Execute.
>
> --
> [url]http://www.aspfaq.com/[/url]
> (Reverse address to reply.)
>
>
Guest



Reply With Quote

