Sharepoint 2010 将页导航到另一页时出错

Sharepoint 2010 将页导航到另一页时出错,sharepoint-2010,infopath,Sharepoint 2010,Infopath,我正在尝试使用以下代码在infopath表单的按钮单击上重定向页面: HttpContext.Current.Response.Redirect("http://www.google.com", true); 但我得到了这个错误: “对象引用未设置为对象的实例。”它对您有帮助吗 HttpContext.Current.Response.Redirect("http://www.google.com", false); 看这里, 或/和这个 或/和这个 HttpContext.Curre

我正在尝试使用以下代码在infopath表单的按钮单击上重定向页面:

HttpContext.Current.Response.Redirect("http://www.google.com", true);
但我得到了这个错误:

“对象引用未设置为对象的实例。”

它对您有帮助吗

HttpContext.Current.Response.Redirect("http://www.google.com", false); 
看这里,

或/和这个

或/和这个


HttpContext.Current.Response.Redirect(“anyurl”,false);我分享了一些非常好的解决方案的链接,请务必查看:)