我正在尝试使用以下代码重定向按钮单击infopath表单上的页面:
HttpContext.Current.Response.Redirect("http://www.google.com", true);
但是我收到了这个错误:
"对象引用未设置为对象的实例。"
答案 0 :(得分:1)
对你有帮助吗?
HttpContext.Current.Response.Redirect("http://www.google.com", false);
看看这里,
http://mfawazsp.blogspot.in/2010/02/problem-with-responseredirect-in.html
或/和此,
Need inputs for logic for Codebehind in Infopath Button
或/和此,