Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
2
Reply
Gridview To XML with Custom Schema
Rhega Fhazry
Oct 10 2016 2:41 AM
306
Reply
GetData();
DataSet ds =
new
DataSet();
DataTable dtxml = ((DataView)GVHostDtl.DataSource).Table;
ds.Tables.Add(dtxml);
ds.WriteXml(Server.MapPath(
"~/"
+ xmlFileName));
i have question ..So i have Grid where the data are binding from SQL..And i will export/download file to .XML files..its success but the header table XML files are not same with "Schema" on Grid..ex= i have field 'Actual Duty On Time In' on grid but on exporting file .XML field header name changes to 'Actual_Duty_On_Time_In'
Data My Gridview
Data .XML
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
Image control in asp.net c#
How can I retrive data from database using parameterfielddef