Click here to Skip to main content
15,911,711 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I'm trying to use a array which is in page behind code(.cs file) in a java script function which is in aspx page. so that I can disable all the dates in that array. How is it possible.

Thankyou
Posted
Updated 9-Dec-14 20:25pm
v2

1 solution

use hiddenfield and store the values formated with ',' seprated string and store it in hiddenfield using cs file... and then using javascript function get this values,seprate from ',' and disable all dates in aspx page....
 
Share this answer
 
Comments
Praveen Kumar Upadhyay 10-Dec-14 3:05am    
or you can do so using ScriptManager.RegisterStartupScript() method from code behind and can call javascript method.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900