Solved

Page Refresh

Posted on 2011-02-27
6
346 Views
Last Modified: 2012-05-11
How can I refresh the loginView control in an asp.net 4.0 web page with an interval of 1min?
please provide a c# sample.

thanks

ayha
0
Comment
Question by:ayha1999
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 23

Expert Comment

by:Rajkumar Gs
ID: 34991207
You mean just refresh the page that contains LoginView control ?
What's the purpose for that ?

Raj
0
 
LVL 23

Expert Comment

by:Rajkumar Gs
ID: 34991218
If you want to just refresh the page, put a meta refresh tag (in ASPX page)

<meta http-equiv="refresh" content="60">

Open in new window

for refresh in every 60 seconds

Raj
0
 
LVL 7

Author Comment

by:ayha1999
ID: 34991224
Just the loginView control using update panel and timer. not the entire page. In out asp.net intranet application the timeout is half an hour. after that user need to login again. if a page is open for some without refresh, user will not know whether he logged out or not. I wan to avoid it and inform user, his status every min.
0
Quiz: What Do These Organizations Have In Common?

Hint: Their teams ended up taking quizzes, too.

 
LVL 23

Accepted Solution

by:
Rajkumar Gs earned 125 total points
ID: 34991252
This tutorial from msdn could guide you for that.

Raj
0
 
LVL 8

Expert Comment

by:Anurag Agarwal
ID: 34998623

<html>
<head>
<script type="text/JavaScript">
function timedRefresh(timeoutPeriod) {
      setTimeout("location.reload(true);",timeoutPeriod);
}
</script>

</head>
<body onload="JavaScript:timedRefresh(5000);">
This page will refresh every 5 seconds. This is because we're using the 'onload' event to call our function. We are passing in the value '5000', which equals 5 seconds.

</body>
</html>
0
 
LVL 7

Author Closing Comment

by:ayha1999
ID: 35020487
thanks
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question