Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copy table to client
Message
De
14/12/2008 08:32:23
 
 
À
12/12/2008 17:09:42
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Divers
Thread ID:
01367118
Message ID:
01367257
Vues:
13
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform