Creating a vfp mtdll is one way(This lets you keep your vfp code.). A .NET proxy dll is then created over that using either TLBIMP from the .NET SDK or VS.NET. Here's some sample C# code:
< % @Page Language="C#" ASPCompat="true" %>
< % @Import Namespace="avfpdemo2_dotnetproxy" %>
< %
server x ;
x = new server() ;
try
{
Response.Write(x.main());
}
catch(Exception ex)
{
Response.Write("Caught .NET exception, source: " + ex.Source + " message: " + ex.Message);
}
%>
An example using VFP 7 data and this code is at:
http://www.activevfp.com/avfpdemo2/default.aspx>Hi All,
>
>
>I'm wondering where I can get my hands on a few samples showing how you can use a Visual Foxpro Database 7.0 and above with a web App running ASP .net Is this doable in the first place ?
>
>
>thanks,
>
>Don