Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

Redirect url in Infopath form

$
0
0

Hi, I have an infopath FormCode.cs and according to the change value in a DropDown I want to redirect the user to another page.

I used:

HttpContext.Current.Response.Redirect(TEMPLATE_AUDITCHANTIER + "&FrmId=" + arrS[1].ToString() + "&Poids=" + _poid + "&Pid=" + _strpid + "&CpId=" + arrS[2].ToString(), true);

but it gives me an error message: "Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack."

Strange but it continues and gives me another error msg: "Unable to perform redirection once the HTTP headers have been sent."

Is it the correct way to do a redirect inside the infopath FormCode.cs?

thanks




Viewing all articles
Browse latest Browse all 11571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>