<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: How to Redirect to a URL via VB</title><link>https://www.infopathdev.com:443/forums/thread/41385.aspx</link><pubDate>Thu, 07 May 2009 14:19:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:41385</guid><dc:creator>Samir Farid</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/41385.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=41385</wfw:commentRss><description>&lt;p&gt;Nice going, I&amp;#39;m glad I could help.&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Samir&lt;/p&gt;</description></item><item><title>Re: How to Redirect to a URL via VB</title><link>https://www.infopathdev.com:443/forums/thread/41383.aspx</link><pubDate>Thu, 07 May 2009 14:12:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:41383</guid><dc:creator>tavalanche</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/41383.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=41383</wfw:commentRss><description>&lt;p&gt;Just to give you guys an update regarding the&amp;nbsp;resolution I found for this problem (as I know how such resolutions help me when I need them), this is the code (below) that I used to get my redirects working via VB...&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Kudos to Samir&lt;/strong&gt; for stearing me in the right direction too btw...&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim rURL As String = String.Empty&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rURL = &amp;quot;&lt;/em&gt;&lt;a href="http://www.google.com/"&gt;&lt;em&gt;http://www.google.com&lt;/em&gt;&lt;/a&gt;&lt;em&gt;&amp;quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; HttpContext.Current.Response.Redirect(rURL.ToString(), False)&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;I still used Samir&amp;#39;s steps (above) which are:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;&amp;nbsp;1. First of all, you have to add a reference to the System.Web namespace in your project.&lt;br /&gt;&lt;br /&gt;2. Add an Imports statement in your code &amp;quot;Imports System.Web;&amp;quot;&lt;/em&gt;&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;I just substitued my code in for step # 3.&amp;nbsp; Oh, and I also had to change my form&amp;#39;s security settings to &amp;quot;Full&amp;quot; via the following steps:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;1.&amp;nbsp; &amp;quot;Tools (menu)&amp;nbsp; &amp;gt;&amp;gt;&amp;nbsp; Form Options&amp;nbsp; &amp;gt;&amp;gt;&amp;nbsp; Secuirty &amp;amp; Trust&amp;quot; tab&lt;/p&gt;
&lt;p&gt;2.&amp;nbsp; Unchecking &amp;quot;Automatically determine security level (recommended)&amp;quot; checkbox, and selecting the &amp;quot;Full Trust (the form has access content from the domain in which it is located)&amp;quot; radio button...&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;After doing-so, my form redirect to whatever URL I specified upon submit via VB code!!&amp;nbsp; Note that the button I appended this code to was my &amp;quot;submit&amp;quot; button of course, and I appended this code as the last block of the button&amp;#39;s code (of course) so the redirection is the last thing that happens.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I hope this helps anybody out there who&amp;#39;s trying to do this via VB Script!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;- Tavalanche&lt;/p&gt;</description></item><item><title>Re: How to Redirect to a URL via VB</title><link>https://www.infopathdev.com:443/forums/thread/41295.aspx</link><pubDate>Tue, 05 May 2009 19:18:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:41295</guid><dc:creator>tavalanche</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/41295.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=41295</wfw:commentRss><description>&lt;p&gt;Samir,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thanx for your input.&amp;nbsp; Unfortunately this did not work for me.&amp;nbsp; I got an error when try to run it via the browser, and this error (below) when I run it&amp;nbsp;via the client:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;System.Security.SecurityException&lt;br /&gt;Request for the permission of type &amp;#39;System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089&amp;#39; failed.&lt;br /&gt;&amp;nbsp;&amp;nbsp; at WOTS_FIX5.FormCode.CTRL15_5_Clicked(Object sender, ClickedEventArgs e)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at Microsoft.Office.InfoPath.Internal.ButtonEventHost.OnButtonClick(DocActionEvent pEvent)&lt;br /&gt;&amp;nbsp;&amp;nbsp; at Microsoft.Office.Interop.InfoPath.SemiTrust._ButtonEventSink_SinkHelper.OnClick(DocActionEvent pEvent)&lt;/em&gt;&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;&amp;nbsp;Have any more ideas??&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;- Tav&lt;/p&gt;</description></item><item><title>Re: How to Redirect to a URL via VB</title><link>https://www.infopathdev.com:443/forums/thread/41125.aspx</link><pubDate>Thu, 30 Apr 2009 00:17:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:41125</guid><dc:creator>Samir Farid</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/41125.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=41125</wfw:commentRss><description>&lt;p&gt;Hi Tav,&lt;/p&gt;
&lt;p&gt;I haven&amp;#39;t tried this out yet, but you could probably do the following:&lt;/p&gt;
&lt;p&gt;1. First of all, you have to add a reference to the System.Web namespace in your project.&lt;br /&gt;&lt;br /&gt;2. Add an Imports statement in your code &amp;quot;Imports System.Web;&amp;quot;&lt;br /&gt;&lt;br /&gt;3. Use the following code: &lt;br /&gt;&lt;br /&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080"&gt;HttpContext&lt;/font&gt;&lt;/font&gt;.Current.Response.Redirect(&amp;quot;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000"&gt;http://www.infopathdev.com&lt;/font&gt;&lt;/font&gt;);&lt;/p&gt;
&lt;p&gt;Let me know if this worked for you.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Samir&lt;/p&gt;</description></item><item><title>How to Redirect to a URL via VB</title><link>https://www.infopathdev.com:443/forums/thread/41098.aspx</link><pubDate>Wed, 29 Apr 2009 20:00:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:41098</guid><dc:creator>tavalanche</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/41098.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=41098</wfw:commentRss><description>&lt;p&gt;Guys:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;From this question, I&amp;#39;m sure you guys would be able to quickly tell I&amp;#39;m a true newbie.&amp;nbsp; I&amp;#39;ve been looking for this answer for a few hours though - and have found solutions, but none of which are working in my InfoPath form.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Here&amp;#39;s the thing...&amp;nbsp; I need to redirect my web-enabled InfoPath form to another web page via VB when the user clicks on a partiular button.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;The part thiat I&amp;#39;m missing is simply the &lt;strong&gt;VB code&lt;/strong&gt; to redirect the user accordingly.&amp;nbsp; I&amp;#39;ve found and tried this code:&lt;/p&gt;
&lt;p&gt;[&amp;nbsp;Response.Redirect(&amp;quot;&lt;a href="http://www/"&gt;http://www. google.com&lt;/a&gt;&amp;quot;) ], but it gives me a &amp;quot;Name &amp;#39;Response&amp;#39; is not declared&amp;#39; error.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I know this is &lt;em&gt;crazy&lt;/em&gt; simple, but I just can&amp;#39;t seem to find anything that works.&amp;nbsp; Any help would be GREATLY appreciated.&amp;nbsp; Thanx!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;- Tav&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>