Mohan Kumar
Mohan Kumar

Reputation: 6056

Refresh(F5) logic of Internet Explorer

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

Answers (2)

Ankush Roy
Ankush Roy

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

Bhavik Goyal
Bhavik Goyal

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

Related Questions