<?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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Using c# to set default textbox value</title><link>https://www.infopathdev.com:443/forums/thread/42296.aspx</link><pubDate>Sat, 30 May 2009 05:22:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:42296</guid><dc:creator>swathip</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/42296.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=42296</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Use the following code line to set a field value in C#.&lt;/p&gt;
&lt;p&gt;thisXDocument.DOM.selectSingleNode(&amp;quot;Xpath of your text bxo field&amp;quot;).text = returned value;&lt;/p&gt;</description></item><item><title>Using c# to set default textbox value</title><link>https://www.infopathdev.com:443/forums/thread/42282.aspx</link><pubDate>Fri, 29 May 2009 20:34:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:42282</guid><dc:creator>ybotspawn</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/42282.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=42282</wfw:commentRss><description>&lt;p&gt;Ok, so I&amp;#39;ve written some c# code that queries a sql database for the next available ticket number.&amp;nbsp; My c# code returns the latest ticket number + 1.&amp;nbsp; How do I configure my form so that the ticket number textbox is set to the return value of my code?&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>