Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copy table to client
Message
From
14/12/2008 08:32:23
 
 
To
12/12/2008 17:09:42
General information
Forum:
ASP.NET
Category:
ADO.NET
Miscellaneous
Thread ID:
01367118
Message ID:
01367257
Views:
12
You could try something like this from a "regular" aspx...
    Sub SendTable(ByVal dt As DataTable)
        Dim ctextwriter As StringWriter = New StringWriter
        dt.WriteXml(ctextwriter, WriteSchema)
        Me.SendString(ctextwriter.ToString)
    End Sub

    Sub SendString(ByVal tcString As String)
        Response.Clear()
        Response.Write(tcString)
        Response.End()
    End Sub
And don't forget:
SqlDataAdapter.MissingSchemaAction = MissingSchemaAction.AddWithKey
Glenn
>Does anyone have a vb script that will copy a VFP database table and memo file from the webserver to the client PC? I am using a SQL-SELECT to create the table successfully but can't seem to get it to the client successfully. It always comes up corrupted.
>Thanks
Previous
Reply
Map
View

Click here to load this message in the networking platform