• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2149
  • Last Modified:

vb.net Force reload/refresh page

Hello folks, I would like to know if exist any function to reload a page without use response.redirect("mypage").

Any suggestion?

Thanks
0
nkoriginal
Asked:
nkoriginal
2 Solutions
 
blandyukCommented:
You can use the header META tags to do this:

<meta http-equiv="refresh" content="600">
0
 
blandyukCommented:
To navigate to another page use;

<meta http-equiv="refresh" content="2;url=http://webdesign.about.com">
0
 
nkoriginalAuthor Commented:
Something in vb.net? or c#?
Because I need to execute when my function conditions = true

Thanks for any help
0
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
theplonkCommented:
You could add blandyuk's meta tag to your header via code in one of your page events or functions:

HtmlMeta meta = new HtmlMeta();
meta.HttpEquiv = "refresh";
meta.Content = "2;";
this.Header.Controls.Add(meta);
0
 
Carl TawnSystems and Integration DeveloperCommented:
Can you explain your scenario a little more? From your second comment it doesn't sound like you actually mean to refresh the page as such.
0
 
CodeCruiserCommented:
Slightly different from above

Response.AppendHeader("Refresh", "0;");
0
 
CodeCruiserCommented:
Also try

Response.AddHeader("refresh", "0")
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now