<?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: problem in Submitting data from infopath form to sql server via programming</title><link>https://www.infopathdev.com:443/forums/thread/46979.aspx</link><pubDate>Tue, 15 Sep 2009 09:35:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:46979</guid><dc:creator>Kshitij bishnoi24</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/46979.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=46979</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;yes .. how to make it browser compatible code...&lt;/p&gt;</description></item><item><title>Re: problem in Submitting data from infopath form to sql server via programming</title><link>https://www.infopathdev.com:443/forums/thread/46965.aspx</link><pubDate>Tue, 15 Sep 2009 00:16:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:46965</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/46965.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=46965</wfw:commentRss><description>&lt;p&gt;Your code works in the client? Just not on the browser?&lt;/p&gt;</description></item><item><title>Re: problem in Submitting data from infopath form to sql server via programming</title><link>https://www.infopathdev.com:443/forums/thread/46932.aspx</link><pubDate>Mon, 14 Sep 2009 09:45:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:46932</guid><dc:creator>Kshitij bishnoi24</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/46932.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=46932</wfw:commentRss><description>&lt;p&gt;Hi! &lt;/p&gt;
&lt;p&gt;thanx for ur reply , no errors in design checker . &lt;/p&gt;
&lt;p&gt;code what i have written is :&lt;/p&gt;&lt;font size="2"&gt;SqlConnection conn = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;null&lt;/font&gt;&lt;font size="2"&gt;;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;try&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;{&lt;/p&gt;XPathNavigator navigator = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;this&lt;/font&gt;&lt;font size="2"&gt;.MainDataSource.CreateNavigator();&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;string&lt;/font&gt;&lt;font size="2"&gt; Title = navigator.SelectSingleNode(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;//my:title&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;this&lt;/font&gt;&lt;font size="2"&gt;.NamespaceManager).Value;&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;string&lt;/font&gt;&lt;font size="2"&gt; Address = navigator.SelectSingleNode(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;//my:address&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;this&lt;/font&gt;&lt;font size="2"&gt;.NamespaceManager).Value;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;string&lt;/font&gt;&lt;font size="2"&gt; City = navigator.SelectSingleNode(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;//my:city&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;this&lt;/font&gt;&lt;font size="2"&gt;.NamespaceManager).Value;&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;string&lt;/font&gt;&lt;font size="2"&gt; State = navigator.SelectSingleNode(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;//my:state&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;this&lt;/font&gt;&lt;font size="2"&gt;.NamespaceManager).Value;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;string&lt;/font&gt;&lt;font size="2"&gt; Zipcode = navigator.SelectSingleNode(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;//my:zipcode&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;this&lt;/font&gt;&lt;font size="2"&gt;.NamespaceManager).Value;&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;double&lt;/font&gt;&lt;font size="2"&gt; Latitude = &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;Convert&lt;/font&gt;&lt;font size="2"&gt;.ToDouble(navigator.SelectSingleNode(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;//my:latitude&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;this&lt;/font&gt;&lt;font size="2"&gt;.NamespaceManager).Value);&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;double&lt;/font&gt;&lt;font size="2"&gt; Longitude = &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;Convert&lt;/font&gt;&lt;font size="2"&gt;.ToDouble(navigator.SelectSingleNode(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;//my:longitude&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;this&lt;/font&gt;&lt;font size="2"&gt;.NamespaceManager).Value);&lt;/p&gt;conn = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;new&lt;/font&gt;&lt;font size="2"&gt; SqlConnection();&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;conn.ConnectionString = &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;server=KFLS3;database=FCS;Trusted_Connection=yes&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;conn.Open();&lt;/p&gt;SqlCommand command = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;new&lt;/font&gt;&lt;font size="2"&gt; SqlCommand();&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;command.Connection = conn;&lt;/p&gt;
&lt;p&gt;command.CommandText = &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;INSERT INTO FCS_DEMO VALUES (&amp;#39;&amp;quot;&lt;/font&gt;&lt;font size="2"&gt; + Title + &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;&amp;#39;,&amp;#39;&amp;quot;&lt;/font&gt;&lt;font size="2"&gt; + Address + &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;&amp;#39;,&amp;#39;&amp;quot;&lt;/font&gt;&lt;font size="2"&gt; + City + &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;&amp;#39;,&amp;#39;&amp;quot;&lt;/font&gt;&lt;font size="2"&gt; + State +&lt;/p&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;&amp;#39;,&amp;#39;&amp;quot;&lt;/font&gt;&lt;font size="2"&gt; + Zipcode + &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;&amp;#39;,&amp;#39;&amp;quot;&lt;/font&gt;&lt;font size="2"&gt; + Latitude + &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;&amp;#39;,&amp;#39;&amp;quot;&lt;/font&gt;&lt;font size="2"&gt; + Longitude + &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;&amp;#39;)&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;command.ExecuteNonQuery();&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;catch&lt;/font&gt;&lt;font size="2"&gt; (&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;Exception&lt;/font&gt;&lt;font size="2"&gt; ex)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;finally&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;conn.Close();&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;i am new to infopath coding can u please elaborate about UDC in&amp;nbsp;infopath .. or what i have did wrong&amp;nbsp;in my coding...&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;kshitij &amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;</description></item><item><title>Re: problem in Submitting data from infopath form to sql server via programming</title><link>https://www.infopathdev.com:443/forums/thread/46913.aspx</link><pubDate>Sun, 13 Sep 2009 13:55:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:46913</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/46913.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=46913</wfw:commentRss><description>&lt;p&gt;Do you have any errors in the design checker? What is your code like? I&amp;#39;m wondering if it is a security issue -- you might be better off creating a UDC for the data connection, then modifying the connection&amp;#39;s command in code to an insert command. I think this will keep you from having to make your form full trust, as well.&lt;/p&gt;</description></item><item><title>problem in Submitting data from infopath form to sql server via programming</title><link>https://www.infopathdev.com:443/forums/thread/46870.aspx</link><pubDate>Fri, 11 Sep 2009 16:36:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:46870</guid><dc:creator>kshitij bishnoi1984</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/46870.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=46870</wfw:commentRss><description>&lt;p&gt;Hi!&amp;nbsp;&lt;/p&gt;
&lt;p&gt;i have make one form and write code for submitting the data to sql server ,by given full trust it is submitting the data to sql&amp;nbsp;but &amp;nbsp;once i published this form and activate this form as a feature in sharepoint site and open the form in browser it is not showing any&amp;nbsp;error and not submitting anything to sql server ....&lt;/p&gt;
&lt;p&gt;Can anybody help me ,its urgent...&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;thanks,&lt;/p&gt;
&lt;p&gt;kshitij &amp;nbsp;&lt;/p&gt;</description></item></channel></rss>