Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Any easy way to create an XML table
Message
 
To
08/10/2002 19:44:39
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00709062
Message ID:
00719222
Views:
14
Hi Mike,
Sorry for jumping in....

Ho to assign/read this DataSet fields and link them to my form textbox then change the data then return it back to database ?

Ahmad

>>I need to create an XML Table from a Windows Form using an SQL table as the source. Know very little about XML.
>
>
//Connect to the data base and get the table
>SqlConnection data = new SqlConnection(connectionString);
>DataSet dataSet = new DataSet();
>SqlDataAdapter getTable = new SqlDataAdapter("select * from table", data);
>getTable.Fill(dataSet, "table");
>textBox1.Text = dataSet.GetXml();
>
>Does it need to be any fancier than that?
<><><><><><><><><><><><><><><><><><><><>
<><> REMEMBER,,,,KNOWLEDGE IS POWER <><>
<><><><><><><><><><><><><><><><><><><><>
Previous
Reply
Map
View

Click here to load this message in the networking platform