Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / Database Access / September 2007



Tip: Looking for answers? Try searching our database.

How can i return recordset from ASP to VB sub ??

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
infiraghu@gmail.com - 26 Sep 2007 12:02 GMT
Hi,

Thanks in Advance !

Accutally I have a VB 6.0 Program. I want to return recordset from ASP
file. Is there Any way to return ASP file data in VB 6.0

ASP Code:
<!--#include virtual="/func.asp"-->
<%
Response.Buffer=true
cCountry=Request("Country")

dim  RsXML, Con, SQL

set Con=Server.CreateObject("Adodb.Connection")
Con.open getConn

txt="Select * from CurrencyRate "

Set RsXML = Server.CreateObject("ADODB.Recordset")
RsXML.Open  txt,Con

RsXML.save Response, adPersistXML

set RsXML=nothing
Response.Flush

%>
-------------------------------------
This works fine and return XML
Now my question is how to return this Data to VB 6.0 program
I am trying like this but i cannot return ?

Private Sub Command1_Click()
   Dim RSt As Recordset
   Dim cOnn As Connection

   Set cOnn = Nothing
   Set RSt = New Recordset
   RSt.CursorLocation = adUseClient

   txt = "http://test.com/testload.asp"

   RSt.Open txt

   MsgBox RSt(0)

End Sub

How can i return recordset from ASP to VB sub ??

Thanking lot !
Raghu Bhandari
infiraghu@gmail.com - 26 Sep 2007 13:10 GMT
On Sep 26, 4:02 pm, infira...@gmail.com wrote:
> Hi,
>
[quoted text clipped - 50 lines]
> Thanking lot !
> Raghu Bhandari

Thanks Lot For your Time!

I got Solution from
http://www.carlprothman.net/Default.aspx?tabid=92

thanks www.carlprothman.net

MCP
Raghu Bhandari
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.