Hello,
Has anyone got the changed and validating events to execute the code
behind when deploying forms to MOSS 2007?
The forms seem to work fine when running them under the IP2007 smart
client, but when deployed to MOSS and run in the browser the events
never seem to get fired...
I'm wondering if I am missing something really simple here. In order
to test - I created a small form based off an xml file
<test>
<firstName />
<lastName />
</test>
dropped these onto a new form, and added a changed event to the
firstName element, as such..
public void firstName_Changed(object sender, XmlEventArgs e)
{
if (e.UndoRedo)
return;
XPathNavigator xpn =
this.MainDataSource.CreateNavigator().SelectSingleNode(
"/test/lastName");
xpn.SetValue(e.NewValue);
}
The functionality here is supposed to be - enter a first name, and the
changed event is fired, which copies the first name to the last name.
This works on IP2007 client as expected, but in the browser, nothing
happens (it doesnt even look like it tries to post back to the server
to execute the event).
I find this a bit strange. Has anyone got this to work at all - if so,
is there anything that you had to do special?
madhur - 24 Jul 2006 15:29 GMT
Hi MarkA
I have tired it and it works.
Madhur
> Hello,
>
[quoted text clipped - 36 lines]
> I find this a bit strange. Has anyone got this to work at all - if so,
> is there anything that you had to do special?
MarkA - 24 Jul 2006 17:40 GMT
Well thats bloody annoying isn't it :)
Wonder if there is something in my environment that is screwed up...
mind emailing me your xsn (or VSTO project folder) that you deployed to
your MOSS server so I can see if it is me doing something wrong?
mark _DOT_ allanson _AT_ accenture _DOT_ com
Thanks Madhur,
Mark
> Hi MarkA
>
[quoted text clipped - 42 lines]
> > I find this a bit strange. Has anyone got this to work at all - if so,
> > is there anything that you had to do special?
MarkA - 01 Aug 2006 09:20 GMT
Just for the record: I found a solution to my problem.
If you want a control to post back to the server, then ALL containers
underneath the control also have to be set to "Always" post back. In my
instance, my controls were in a Section, and the section was set to
post back only as needed. Once I set the section to always it started
working like a charm.
Cheers,
Mark
> Well thats bloody annoying isn't it :)
>
[quoted text clipped - 54 lines]
> > > I find this a bit strange. Has anyone got this to work at all - if so,
> > > is there anything that you had to do special?