<?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>InfoPath 2010</title><link>https://www.infopathdev.com:443/forums/142.aspx</link><description>Are you exploring new features coming up in 2010? Share information and ask questions here!</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Redirect to another URL within the same site collection when closing the form.</title><link>https://www.infopathdev.com:443/forums/thread/70396.aspx</link><pubDate>Sun, 18 Sep 2011 19:11:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:70396</guid><dc:creator>Scott Rooke</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/70396.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=70396</wfw:commentRss><description>I&amp;#39;m trying to get a browser-enabled form to redirect to another page in the Site Collection after the form closes.  I have read in numerous posts and blogs that you can update the source parameter in the URL to do this.  My issue is I need to build the redirect URL string based on values in the current form.  For testing purposes&lt;br /&gt;&lt;br /&gt;Here is what I&amp;#39;ve tried so far: &lt;br /&gt;&lt;li&gt;added a button to a form&lt;/li&gt;&lt;li&gt;updated rules on button to close the form&lt;/li&gt;&lt;li&gt;added code to the button click event --&amp;gt; string strURL = &amp;quot;http://sp2010srv/sites/p108/sitepages/procnum.aspx&amp;quot;;&lt;br /&gt;HttpContext.Current.Response.Redirect(strURL ,false); a reference was added to System.Web&lt;/li&gt;&lt;li&gt;publish the form&lt;/li&gt;&lt;li&gt;upload form in central admin&lt;/li&gt;&lt;li&gt;browse to form library&lt;/li&gt;&lt;li&gt;open form, click button&lt;/li&gt;&lt;li&gt;RESULT: Error  Unknown&lt;/li&gt;&lt;br /&gt;&lt;br /&gt;Anyone have any ideas?&lt;br /&gt;&lt;br /&gt;thanks in advance!&lt;br /&gt;&lt;br /&gt;</description></item></channel></rss>