I have a form that I have published to SharePoint. The form contains a text box and a button. First the form is prefilled. Then the user can change the text. When the button is clicked, I want to perform some action. My problem is that in the VSTA c# code, I perform the usual to get the text, i.e.:
XPathNavigator root = this.MainDataSource.CreateNavigator();
XPathNavigator field = root.SelectSingleNode("/my:Form/my:TextBox", this.NamespaceManager);
string text = field.Value;
The problem is such that "text" is always the original value even if the user has changed. This works great in the filler, but not in browser mode. It seems that the browser is not posting back to the server and the updated text remains in the browser. Of course the text box is bound to the field I am trying to obtain. The data is not being submitted to a database or anything. I just want the value in the c#code.
Any help or direction is appreciated.