Need help in custom url from infopath page - InfoPath Dev Sign in | Join | Help in General InfoPath (Entire Site) InfoPath Dev InfoPath Dev is dedicated to bringing you the information and tools you need to be successful in your Microsoft Office InfoPath development projects. Home Blogs Forums Photos Downloads InfoPath Dev » InfoPath » General » Need help in custom url from infopath page Need help in custom url from infopath page Last post 05-23-2012 12:35 PM by IdeasTree. 1 replies. Page 1 of 1 (2 items) Sort Posts: Oldest to newest Newest to oldest Previous Next 05-18-2012 10:39 AM Rahul2011 Joined on 03-18-2011 Posts 44 Need help in custom url from infopath page Reply Contact Hi all, on infopath button click event i want to open one sharepoint custom URL i mean new page, how can i do this...can somebody pls provide me the sample code to achieve this..... Filed under: infopath 2010 05-23-2012 12:35 PM In reply to IdeasTree Joined on 03-20-2012 Posts 7 Re: Need help in custom url from infopath page Mark as Not AnswerMark as Answer... Reply Contact Add Microsoft.SharePoint.dll to your references. Then use the following code: SPUtility.Redirect("http://www.yahoo.com", SPRedirectFlags.Trusted | SPRedirectFlags.DoNotEndResponse, HttpContext.Current); It works for me on SharePoint 2007. Page 1 of 1 (2 items) Copyright © 2003-2019 Qdabra Software. All rights reserved.View our Terms of Use.
SPUtility.Redirect("http://www.yahoo.com", SPRedirectFlags.Trusted | SPRedirectFlags.DoNotEndResponse, HttpContext.Current);
It works for me on SharePoint 2007.