<?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>Browser Forms</title><link>https://www.infopathdev.com:443/forums/40.aspx</link><description>For browser form specific questions</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Change View From Web Hosting Code</title><link>https://www.infopathdev.com:443/forums/thread/32288.aspx</link><pubDate>Tue, 16 Sep 2008 20:26:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:32288</guid><dc:creator>Bhavesh</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/32288.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=32288</wfw:commentRss><description>&lt;p&gt;hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;instead of switching a view programatically, you can keep the required view as the default view while designing an Infopath form and then embed it.&lt;/p&gt;
&lt;p&gt;not sure but might work for you.&lt;/p&gt;
&lt;p&gt;Bhavesh&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Change View From Web Hosting Code</title><link>https://www.infopathdev.com:443/forums/thread/32050.aspx</link><pubDate>Sun, 07 Sep 2008 19:36:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:32050</guid><dc:creator>Hou Zhonglei</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/32050.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=32050</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi , I have a big trouble, is anyone knows how to change view from web hosting C# code ?&lt;/p&gt;&lt;p&gt;My trouble is , I write a aspx page and using form control to embeded a infopath web form into my page, I write code when the form is loading to change the view ,like this&lt;/p&gt;&lt;pre class="libCScode" id="ctl00_mainContentContainer_ctl05other"&gt;formControl1.XmlForm.ViewInfos.SwitchView(&amp;quot;view1&amp;quot;);&lt;/pre&gt;&lt;pre class="libCScode" id="ctl00_mainContentContainer_ctl05other"&gt;but it seems it did not work , and it said this feature is not supported when the web form loading.&lt;/pre&gt;&lt;pre class="libCScode" id="ctl00_mainContentContainer_ctl05other"&gt;is there any other way to implement it, I want to : change the form view when the form is loading from the hosting web page using C# code.&lt;/pre&gt;&lt;pre class="libCScode" id="ctl00_mainContentContainer_ctl05other"&gt;thanks a lot !&lt;br /&gt;&lt;/pre&gt;</description></item></channel></rss>