>I'm not sure what I'm missing here but...
>
>I wrote a simple Class definition to query a table, and bundle the results into an HTML table format. The object puts the resulting HTML into a property of the object named cHtml. I compiled it as a Dll. An ASP page then references the object with the following code:
>
><% oServer = CreateObject('WebData.AspTools')
>oServer.ShowTable()
>Response.Write(oServer.cHtml) %>
>
>I tested it under VFP 6, SP3 using the following syntax:
>
>oServer = CreateObject('WebData.AspTools')
>oServer.ShowTable()
>? oServer.cHtml)
>
>This yields the results I want to see in my ASP file. However, when I try the ASP code, I don't get any results. The server I'm testing it on isn't the one I develop on, so I ran RegSvr32 WebData.Dll to register the dll before I tested it. Any ideas on what to look at? I know the code is right, I can run it without any problems within VFP, just not from an ASP page.
Make sure the web server has rights to the data.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer