一、首先要知道刷新网页的路径;
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 }