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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

hi .net gurus. plz if any one has dumps on 70-631 and 70-541 on windows sharepoint services kindly mail me.

1699


a web application needs to be created to accept the product name and quantity of a toy from a customer. After the customer has entered the product name the application needs to display the discounted price of the product to the customer (company is offering 35% discount on all products). The application should allow the customer to select the product name from a list box. and also while i'm data binding to a label with custom data binding with some declarations : "The Discounted Price is "+((System.Convert.todouble(lblprodprice.text)*(system.convert.todouble(txtqty.text)) - ((System.convert.todouble(lblprodprice.text)*(system.convert.todouble(txtqty.text)*0.35)). Where i need to give this declaration in asp.net 2.0.

1875


What do you mean by query string?

997