<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: get value from dropdown list with c#</title><link>https://www.infopathdev.com:443/forums/thread/3020.aspx</link><pubDate>Tue, 22 Aug 2006 19:23:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:3020</guid><dc:creator>buki79</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/3020.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=3020</wfw:commentRss><description>Hi,&lt;br /&gt;&lt;br /&gt;you're right :) I missed a slash. &lt;br /&gt;thisXDocument.DOM.selectSingleNode("&lt;b&gt;//&lt;/b&gt;my:training_administration/my:courses/my:course/my:id").text&lt;br /&gt;I'm so blind :) Sorry for bothering.&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;&lt;br /&gt;Buki</description></item><item><title>Re: get value from dropdown list with c#</title><link>https://www.infopathdev.com:443/forums/thread/3019.aspx</link><pubDate>Tue, 22 Aug 2006 19:15:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:3019</guid><dc:creator>Agni Jonnalagadda</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/3019.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=3019</wfw:commentRss><description>Hi Buki,&lt;br /&gt;thisXDocument.DOM.selectSingleNode("/my:training_administration/my:courses/my:course/my:id")&lt;br /&gt;is not returning the node. Probably your XPath might be wrong. One thing you need to note here is XPath is case sensitive.</description></item><item><title>Re: get value from dropdown list with c#</title><link>https://www.infopathdev.com:443/forums/thread/3018.aspx</link><pubDate>Tue, 22 Aug 2006 08:34:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:3018</guid><dc:creator>buki79</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/3018.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=3018</wfw:commentRss><description>Hi,&lt;br /&gt;&lt;br /&gt;thanks for the hint, but in this case I don't have to deal with SharePoint. I just want to get the selected value from a dropdown list within an InfoPath form. And there I receive this System.NullReferenceException when I want to retrieve the value.&lt;br /&gt;I guess this can't be hard to accomplish, but at the moment I'm a bit stuck.&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;&lt;br /&gt;Buki&lt;br /&gt;</description></item><item><title>Re: get value from dropdown list with c#</title><link>https://www.infopathdev.com:443/forums/thread/3017.aspx</link><pubDate>Sat, 19 Aug 2006 07:39:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:3017</guid><dc:creator>K.Ramana Reddy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/3017.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=3017</wfw:commentRss><description>Hi,&lt;br /&gt;&lt;br /&gt;Checked out this link,&lt;br /&gt;&lt;br /&lt;a target="_blank" href=http://infopathdev.com/forums/topic.asp?TOPIC_ID=2895&gt;http://infopathdev.com/forums/topic.asp?TOPIC_ID=2895&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;I hope this will work for you,&lt;br /&gt;Thanks.</description></item><item><title>get value from dropdown list with c#</title><link>https://www.infopathdev.com:443/forums/thread/1495.aspx</link><pubDate>Wed, 16 Aug 2006 16:03:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:1495</guid><dc:creator>buki79</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/1495.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=1495</wfw:commentRss><description>Hi,&lt;br /&gt;&lt;br /&gt;how do I get the selecetd value of a dropdown list? This&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;string id = thisXDocument.DOM.selectSingleNode("/my:training_administration/my:courses/my:course/my:id").text;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;only returns this error:&lt;br /&gt;&lt;br /&gt;System.NullReferenceException&lt;br /&gt;Object reference not set to an instance of an object.&lt;br /&gt;   at WBTAnmeldung.WBTAnmeldung.btnViewDetails_OnClick(DocActionEvent e) in d:\vs2003\projects\wbtanmeldung\formcode.cs:line 39&lt;br /&gt;   at Microsoft.Office.Interop.InfoPath.SemiTrust._ButtonEventSink_SinkHelper.OnClick(DocActionEvent pEvent)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Any hints?&lt;br /&gt;&lt;br /&gt;Thanks in advance.&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;&lt;br /&gt;Buki</description></item></channel></rss>