I’m hosting InfoPath 2007 forms in Sharepoint with Form
Services (browser enabled forms).
I want to modify the Source parameter programmatically
to enable redirecting to custom pages instead of the hosting site of the form. I
want to do this without specifying the Source-parameter in the url
used to open the form (we are redirecting users from an SSO-portal
(SingleSignOn) and the URL used by this portal does not specify
the Source parameter and is difficult to change).
1.
Is this possible (if so how) or do I have to specify
the Source-parameter in the url when the form is opened?
2.
If NO; Are there any other robust way to redirect
users programatically to another website or aspx redirect page within the
site?
The Source parameter could typically be on the form
&Source=http://myserver/_layouts/MyCustomRedirectPage.aspx
(form hosted in “rootsite”).
I've attempted several approaches for (2), i.e.
HttpContext.Current.Response.Redirect(“http://myserver/_layouts/MyCustomRedirectPage.aspx”)
without any success.
Any help is appreciated!