Reputation: 6056
What is the programming logic used for refresh(F5) in IE. I want to implement the same logic in my C# application. Do anyone know the technical details of it. If so please share the same.
Thanx in advance
Upvotes: 0
Views: 1829
Reputation: 1631
Refresh just request the page from server once again
To accomplish this Simply hit the url once again.
Response.Redirect(Url.ToString());
if using Webbrowser
WebBrowser.URL=Url.ToString();
if using Watin IE
ie.Refresh();
if you are facing cache problems , clear the cache and cookies and then refresh
Upvotes: 0
Reputation: 2796
Process of F5, calls all the reload functions and functions are called again.
Please clearly specified about what find of application you are building so that i can tell you clearly.
Majorly in ASP.NET if you want to call F5, then simply reload the page by
Response.Redirect(Request.Url.ToString());
for the current page.
Upvotes: 2