protected void Button1_Click(object sender, EventArgs e) { SqlConnection con = new SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings["mssp"].ConnectionString); string strSQL = "Select UserId, UserName from UserDetail"; SqlDataAdapter dt = new SqlDataAdapter(strSQL, con); DataSet ds = new DataSet(); dt.Fill (ds,"UserDetail"); ds.WriteXml(Server.MapPath("emp_xml_file.xml")); } }
<NewDataSet> <UserDetail> <UserID>101</UserID> <UserName>AAA</UserName> </UserDetail> <UserDetail> <UserID>102</UserID> <UserName>BBB</UserName> </UserDetail> </NewDataSet>
<chart caption="sample" showlegent="1" decimalprecision="0"> <category> <details id="101" name="AAA" /> <details id="102" name="BBB" /> </category> </chart>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)