G
Guest
Hi Guys,
Maybe you can help me out. Our company is interested to do .NET for the
first time. Our product is ASP based. We don't want to convert all our
existing stuff to .NET but create new applications in .NET. We created a lot
of APIs which is located in "inc" files that is in ASP. Is it possible to
call an ASP function in my ASPX page? For instance, in my ASPX :
<%@Page Language="VB" Explicit="True" %>
<!-- Foo.inc-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body>
<table>
<tr>
<td><% Response.write(test("Hello"))%></td>
</tr>
</table>
</body>
</html>
-------------
Foo.inc file:
<%
function test(ByRef strValue as string)
' convert singl;e quote into a pair of single quotes
test=replace(strValue,"'","''")
end function
%>
When I run my code I get the following error:
Compiler Error Message: BC30451: Name 'test' is not declared.
Can you guys help me out? Thank you!
Maybe you can help me out. Our company is interested to do .NET for the
first time. Our product is ASP based. We don't want to convert all our
existing stuff to .NET but create new applications in .NET. We created a lot
of APIs which is located in "inc" files that is in ASP. Is it possible to
call an ASP function in my ASPX page? For instance, in my ASPX :
<%@Page Language="VB" Explicit="True" %>
<!-- Foo.inc-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body>
<table>
<tr>
<td><% Response.write(test("Hello"))%></td>
</tr>
</table>
</body>
</html>
-------------
Foo.inc file:
<%
function test(ByRef strValue as string)
' convert singl;e quote into a pair of single quotes
test=replace(strValue,"'","''")
end function
%>
When I run my code I get the following error:
Compiler Error Message: BC30451: Name 'test' is not declared.
Can you guys help me out? Thank you!