<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Why is OnAfterChange firing twice?</title><link>https://www.infopathdev.com:443/forums/thread/7738.aspx</link><pubDate>Fri, 30 Sep 2005 06:04:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:7738</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/7738.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=7738</wfw:commentRss><description>Just add a line to filter out the Delete.&lt;br /&gt;&lt;br /&gt;Patrick Halstead [InfoPath MVP]&lt;br /&gt;InfoPathDev</description></item><item><title>Re: Why is OnAfterChange firing twice?</title><link>https://www.infopathdev.com:443/forums/thread/7737.aspx</link><pubDate>Mon, 26 Sep 2005 17:20:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:7737</guid><dc:creator>DC Ross</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/7737.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=7737</wfw:commentRss><description>Thanks for the reply, Patrick. It does seem very strange to me that both of those events would raise the OnAfterChange event though. Do you know of a better way to perform the action that I'm attempting?&lt;br /&gt;&lt;br /&gt;vt_asparagus: check here:&lt;a target="_blank" href=http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ipsdk/html/xdproOperation_2_HV01021316.asp&gt;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ipsdk/html/xdproOperation_2_HV01021316.asp&lt;/a&gt;</description></item><item><title>Re: Why is OnAfterChange firing twice?</title><link>https://www.infopathdev.com:443/forums/thread/7736.aspx</link><pubDate>Mon, 26 Sep 2005 12:13:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:7736</guid><dc:creator>vt_asparagus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/7736.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=7736</wfw:commentRss><description>I have noticed similar things in the past with the events being raised.  Seems a little weird.  This is an event that is raised off the XML DOM?  If so, do you know where I can go read up on this topic?  W3C?</description></item><item><title>Re: Why is OnAfterChange firing twice?</title><link>https://www.infopathdev.com:443/forums/thread/7735.aspx</link><pubDate>Sat, 24 Sep 2005 02:48:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:7735</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/7735.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=7735</wfw:commentRss><description>Checkboxes receive an e.Operation of Delete and then Insert.&lt;br /&gt;&lt;br /&gt;Patrick Halstead [InfoPath MVP]&lt;br /&gt;InfoPathDev</description></item><item><title>Why is OnAfterChange firing twice?</title><link>https://www.infopathdev.com:443/forums/thread/4931.aspx</link><pubDate>Fri, 23 Sep 2005 17:44:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:4931</guid><dc:creator>DC Ross</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/4931.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=4931</wfw:commentRss><description>&lt;font face="Verdana"&gt;I have some checkboxes in a form that can perform a couple of functions depending on the value of a textbox. Things work correctly, except that OnAfterChange is firing twice, and I have no idea why...&lt;br /&gt;&lt;br /&gt;Here's a simplified snippet:&lt;/font id="Verdana"&gt;&lt;br /&gt;&lt;br /&gt;&lt;font face="Courier New"&gt;[InfoPathEventHandler(MatchPath="/my:Form/my:Checkbox", EventType=InfoPathEventType.OnAfterChange)]&lt;br /&gt;public void Checkbox_OnAfterChange(DataDOMEvent e)&lt;br /&gt;{&lt;br /&gt;	string myTextboxText = thisXDocument.DOM.selectSingleNode("/my:Textbox").text;&lt;br /&gt;	if(myTextboxText != "")&lt;br /&gt;		thisXDocument.UI.Alert("Please enter something in the textbox");&lt;br /&gt;}&lt;/font id="Courier New"&gt;&lt;br /&gt;&lt;br /&gt;&lt;font face="Verdana"&gt;Any help you can provide is greatly appreciated.&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;-DC Ross&lt;/font id="Verdana"&gt;</description></item></channel></rss>