H
Harvey Triana
Hello -
I am migrating a large COM system solution to ASP.NET
To transfer data from Web to client this application uses streams of ADO
recordset, example:
Clasic ASP (VB Script):
<%
Dim Rs ' Recordset of ADO
' populate recordset
...
Response.ContentType = "multipart/mixed"
Rs.Save Response, 0 '//adPersistADTG
Rs.Close
Set Rs = Nothing
%>
client (VB6) side consumes this Recorset as:
Dim rs As Recordset
Set rs = New ADODB.Recordset
rs.Open URL
....
' When URL is the asp page.
--
From ASP.NET i am trying:
using ADODB;
.....
public partial class RsSQL : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
Recordset rs;
// populate recordset
...
Response.ContentType = "multipart/mixed";
rs.Save (Response, 0);
rs = null;
}
I get a HRESULT exeption in rs.Save (Response, 0)
Any suggestion?...
Thanks in advanced,
<HT />
I am migrating a large COM system solution to ASP.NET
To transfer data from Web to client this application uses streams of ADO
recordset, example:
Clasic ASP (VB Script):
<%
Dim Rs ' Recordset of ADO
' populate recordset
...
Response.ContentType = "multipart/mixed"
Rs.Save Response, 0 '//adPersistADTG
Rs.Close
Set Rs = Nothing
%>
client (VB6) side consumes this Recorset as:
Dim rs As Recordset
Set rs = New ADODB.Recordset
rs.Open URL
....
' When URL is the asp page.
--
From ASP.NET i am trying:
using ADODB;
.....
public partial class RsSQL : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
Recordset rs;
// populate recordset
...
Response.ContentType = "multipart/mixed";
rs.Save (Response, 0);
rs = null;
}
I get a HRESULT exeption in rs.Save (Response, 0)
Any suggestion?...
Thanks in advanced,
<HT />