实现Winform端窗体关闭后刷新html网页内容

2021-10-08 23:18

阅读:1810

标签:logs   style   opened   alt   arc   分享   page   tostring   gif   一、首先要知道刷新网页的路径; 1 frmPointEasyToBeat fpetBeat = new frmPointEasyToBeat(bookNoteId, userInfo.UserId); 2 fpetBeat.ShowDialog(); 3 if (webBrowser1.Document?.Window?.Frames != null) 4 { 5 foreach (var iFrame in webBrowser1.Document?.Window?.Frames) 6 { 7 HtmlWindow window = (HtmlWindow)iFrame; 8 if (window.Url.ToString().Contains("UploadImagePage.aspx")) 9 { 10 window.Document?.InvokeScript("searchPhoto", new object[] { }); 11 } 12 } 13 } 后端向html传递刷新消息  实现Winform端窗体关闭后刷新html网页内容标签:logs   style   opened   alt   arc   分享   page   tostring   gif   原文地址:http://www.cnblogs.com/Tcwangyu/p/7482330.html


评论


亲,登录后才可以留言!