大家有做过XML与数据库匹配问题?
<TextBox Name="NAME" Top="27" Left="89" Height="21" Width="100" Text="1" xmlns="TextBox">19
</TextBox>
<TextBox Name="PWD" Top="27" Left="89" Height="21" Width="100" Text="1" xmlns="TextBox">19
</TextBox>
<TextBox Name="AGE" Top="27" Left="89" Height="21" Width="100" Text="1" xmlns="TextBox">19
</TextBox><TextBox Name="SEX" Top="27" Left="89" Height="21" Width="100" Text="1" xmlns="TextBox">19
</TextBox><TextBox Name="other" Top="27" Left="89" Height="21" Width="100" Text="1" xmlns="TextBox">19
</TextBox>
现在我想做的是,通过winform动态添加的控件,然后Name属性值与数据库的字段进行匹配???
从而达到动态拼接SQL语句的效果!
--------------------编程问答-------------------- 先顶一个 --------------------编程问答-------------------- --------------------编程问答-------------------- --------------------编程问答-------------------- string fileName = "C:\\TestData.xml";
DataTable tb=CreateTestTable("XmlDemo"); //创建表的结构,即加入列
tb.ReadXml(fileName);
//此时完全将xml读入,即可操作DataTable --------------------编程问答-------------------- 学习学习!
补充:.NET技术 , C#