I need to refresh browser via c# code and google keeps silence. Any help would be very appreciated.
A:
Consult your browser's documentation for exposed APIs that may allow you to refresh the browser page from a different application, then perform whatever appropriate interop is required to refresh the page.
Greg D
2010-07-13 11:04:38
But he needs code in C#, right?
Kira
2010-07-13 11:05:42
A:
So, you can't do it with C#, because C# isn't used on the browser. You can do it through JavaScript though.
<!-- Codes by Quackit.com -->
<a href="javascript:location.reload(true)">Refresh this page</a>
http://www.quackit.com/javascript/javascript_refresh_page.cfm
or: Meta refresh Tag
If you wanted to split hairs, you could technically, do it in silverlight, but that really just ends up calling JavaScript:
http://stackoverflow.com/questions/552756/can-silverlight-initiate-page-refreshes
Kevin
2010-07-13 11:05:26
A:
The awful, round about way to do it is to attach WatiN to the process (find the HWND, attach that way, most likely) and call Browser.Refresh().
Ian P
2010-07-13 15:52:53