Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


how to include timer or counting time to display next page
in asp.net



how to include timer or counting time to display next page in asp.net..

Answer / Subodh Saurav

To include a timer or countdown timer that displays the next page in ASP.NET, you can use JavaScript and HTML. Here's a simple example using jQuery:nn1. Create a new script file (e.g., CountdownTimer.js) containing the following code:n```javascriptn$(document).ready(function () {n var seconds = 5; // Adjust the number of seconds for your timern function countdown() {n seconds--;n if (seconds < 0) {n location.href = 'NextPageURL'; // Replace NextPageURL with the URL of the next pagen }n $('#countdown').html(seconds + ' seconds'); // Update the timer displayn setTimeout('countdown()', 1000); // Call the countdown function every secondn }n countdown();n});n```n2. Add a span element in your ASPX page to display the timer:n```htmln<span id='countdown'>5 seconds</span>n```n3. Include the script file in your ASPX page:n```htmln<script src='CountdownTimer.js' type='text/javascript'></script>n```

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More ASP.NET Interview Questions

Where is asp.net view state stored?

1 Answers  


What do you mean by query string?

0 Answers  


Define resource files.

1 Answers  


Why is string called immutable data type?

1 Answers  


What language is asp.net written in?

1 Answers  


# What is the transport protocol you use to call a Web service?

1 Answers  


What are all the various Estimation Techniques available ?

1 Answers   MCN Solutions,


How do you implement postback with a text box?

1 Answers  


What is HTTPContext and HTTPModule. What is the use of them?

1 Answers  


What is the Global ASA(X) File?

2 Answers  


About Global .asax ?

6 Answers   Satyam,


Hi..I have created a website in Asp.net with C# i want to add Chinese language in my website..could any body tell me that how can i add dynamically this language on user's request...??? thanks n advance...

1 Answers  


Categories