while creating xml node from c# it is working for string data types, but from xml to saving to database it is throwing exception, because in the database the field is int.
below is my code snippet.
XmlNode OrganisationType = doc.CreateElement("OrganisationType");
OrganisationType.AppendChild(doc.CreateTextNode(eachUser.OrganisationType));
ApplicationUserProperties.AppendChild(OrganisationType);
i have to pass value 4 while creating the xml.
please suggest.
No comments:
Post a Comment