Click here to Skip to main content
15,891,993 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Everyone,

I'm using the below line, but while accessing the sharepoint list i'm receiving "Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack."

<pre>SPUtility.Redirect(site.Url + "/List/Map/AllItems.aspx", SPRedirectFlags.Trusted, HttpContext.Current, string.Empty);</pre>

Any help is appreciated.


Thanks,
Manowj.
Posted
Updated 28-Feb-12 1:38am
v2

1 solution

Since you have no query string parameters to add try using the other overload for this method

C#
SPUtility.Redirect Method (String, SPRedirectFlags, HttpContext)


If that doesn't help then try using Default rather than Trusted for SPRedirectFlags
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900