Thursday, 20 December 2012

How do I retrieve the value of an InfoPath field through code?

Following the code:-

XPathNavigator nav = MainDataSource.CreateNavigator();
string fieldValue = nav.SelectSingleNode("//my:field1", NamespaceManager).Value;

No comments:

Post a Comment