Hi everyone!
When my XSN forms contain at least one Web-Service connection (even without binding to particular fields) a form code is not executed in my XmlFormView host page. But it works fine in the default SharePoint Portal's page http://[servername]/_layouts/FormServer.aspx. I re-read an article about Hosting XmlFormView contol in custom ASP.NET pages (http://msdn2.microsoft.com/en-us/library/aa701078.aspx) twice and strongly followed instructions. But I still have the problem. Also the Header/Footer toolbar buttons do not work either (in my page).
Here is my code in the form:
public void BTN_TEST_Clicked(object sender, ClickedEventArgs e)
{
XPathNavigator nav = MainDataSource.CreateNavigator().SelectSingleNode("/Root/CreditRequest/ClientInfo/Name");
nav.SetValue("Hello World!");
}
I repeat it doesn’t work in my ASP.NET page, only if I have any Web-service Data connection but it works in the native SharePoint’s form page (http://[servername]/_layouts/FormServer.aspx).
Any ideas?