Can someone please help me for providing value from asp in to javascript function?

I want to use "$('#countdown').countdown({until:$.countdown.UTCDate(+12, 2011, 9 -1, 5), format: 'DHMS', layout: " and where you can see the numbers, i want use value which i have retrieved from database.

You simply need the following steps:

1. Connect to you database
2. Open connection
3. Launch your query for the value you want
4. In the javascript part of your page, response.write the data

For example, if the data variable is Timelog

<%
response.write(Timelog)
%>
or
<%=Timelog%>

5.Finally close your connection

You simply need the following steps:

1. Connect to you database
2. Open connection
3. Launch your query for the value you want
4. In the javascript part of your page, response.write the data

For example, if the data variable is Timelog

<%
response.write(Timelog)
%>
or
<%=Timelog%>

5.Finally close your connection

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.