Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4 > ASP.NET 4 General Discussion
|
ASP.NET 4 General Discussion For ASP.NET 4 discussions not relating to a specific Wrox book
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 4 General Discussion section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 15th, 2011, 12:18 PM
Registered User
 
Join Date: Jun 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Passing values from database to javascript function

Hello all,
I am very new to web development and just know c# and a bit of javascript, so please answer in these languages only.
I am using a repeater in asp.net 4. I want to create a timer in each row of the repeater. The starting time of each timer will come from the database and it will start counting down.
My approach to this is to take data from database, pass this data to a javascript function which will decrease the value every second. Now i dont know how to pass the value to this function and how to show the result to the label in each row of this repeater.
Please provide with a solution.
If u can tell any other better approach to solve this then i would also be appreciated.

This is my first post to any forum so please ignore my mistakes.
Thanks. Waiting for a reply

Last edited by romit; June 16th, 2011 at 12:12 AM..





Similar Threads
Thread Thread Starter Forum Replies Last Post
Passing values from asp to a javascript Abhilash Classic ASP Basics 11 June 15th, 2011 12:38 PM
Passing a hardcoded value and manipulating data before passing it to Database table Abhishek Iyer Biztalk 0 August 17th, 2010 06:45 AM
calling a php function to access a MySQL database from javascript the_metro_man Javascript How-To 0 January 12th, 2010 12:26 PM
Passing Date, String values in ASP Function. rupen Classic ASP Basics 2 July 6th, 2005 09:42 PM
Passing php array values to javascript array gkrishna Pro PHP 0 November 6th, 2004 03:20 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.