Hi:We have an InfoPath solution loaded as a content type that is attached to a document library.  We have a couple of picture buttons on this form with C# code behind.  One of the buttons (CLOSE) we would like to get it to NOT run a script but to run some code that redirects to the root of this site:Code is Public void Close_Clicked(object sender, ClientEventArgs e){System.Web.HttpContext.Current.Response.Redirect(_rooturl, true);}Get object reference not set to instance of object error.All the articles we have found show the above syntax.Would appreciate any help.Best RegardsChuck 解决方案 这篇关于在InfoPath解决方案中的c#CSOM应用程序内部进行响应重定向的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
11-02 02:49