<?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: Switching to Coding in C#</title><link>https://www.infopathdev.com:443/forums/thread/14663.aspx</link><pubDate>Thu, 15 Jun 2006 13:14:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14663</guid><dc:creator>janicethorne</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14663.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14663</wfw:commentRss><description>Matt:&lt;br /&gt;&lt;br /&gt;Thank you for your help. However, manually rewriting the code is not the problem - there is not much code there and I would be happy to move it over. I just don't know how to get to a cs file. The form code always opens in a js format and the code is C#. How do I get around that? Do I need to open the form in Visual Studio? When I do that though, I still get the js file. I have even deleted the code out of all of the buttons and it does no good. &lt;br /&gt;&lt;br /&gt;Rather than do it this way, is there code available that is javascript that will accomplish what I am trying to do? All I need to do is to program each of three buttons to submit to a different email address so the form can be routed as it is completed. &lt;br /&gt;&lt;br /&gt;Thank you again.&lt;br /&gt;&lt;br /&gt;</description></item><item><title>Re: Switching to Coding in C#</title><link>https://www.infopathdev.com:443/forums/thread/14662.aspx</link><pubDate>Wed, 14 Jun 2006 21:12:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14662</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14662.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14662</wfw:commentRss><description>Unfortunately, you will have to manually rewrite all of your code into the .cs files.  If you start a new InfoPath project and import your old template as the template that is used in the project, then the old .js file will still be there, but it won't be doing anything.  What you could do is copy the code from the .js file and then translate line-by-line into the .cs file.  &lt;br /&gt;&lt;br /&gt;I hope this helps, let us know if you have any more questions!</description></item><item><title>Switching to Coding in C#</title><link>https://www.infopathdev.com:443/forums/thread/12898.aspx</link><pubDate>Wed, 14 Jun 2006 21:01:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12898</guid><dc:creator>janicethorne</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12898.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=12898</wfw:commentRss><description>I have a form that I had developed and subsequently added some code to. I didn't realize when I added the code (I do not have a heavy background in programming)that it was c#. The form code was saved as a javascript file. I subsequently purchased and installed Visual Studio 2005 and the Infopath toolkit, but I can't seem to modify this code in anything but js. In addition, I can't modify any code in the form with C# - it all defaults to js. Is there something I am missing? Even when I open the project in C# there does not seem to be a way to change the js extension. Any help is appreciated.</description></item></channel></rss>