I am trying to transfer my datatable using UDP but I can't. How can I do that ?
Here is my code :
void function()
{
if (conn.State == ConnectionState.Closed)
{
conn.Open();
}
SqlCommand cmd = new SqlCommand("SELECT * FROM Tablo2 ORDER BY id", conn);
SqlDataAdapter adp = new SqlDataAdapter(cmd);
adp.Fill(dtable);
dtable.TableName = "mydatatable";
dtable.WriteXml(ms);
sendBytes = ms.GetBuffer();
conn.Close();
}
I am taking the data from an MSSQL database and insert them into my datatable. I want to transfer XML file with UDP and recieve the datatable back in another windows form application.
I need help. Thanks for your help.