Take the 2-minute tour ×

I have an asp.net page and the JQuery date picker. On page load, I want to look at some config and create an object of dates to not include and then pass that to my JQuery in an external .js file. Is there a way to do this? How?

EDIT: I'd like to pass a Class object

share|improve this question
What will your object of dates look like? Why do you need to pass it in an external .js file? –  Jon Apr 11 '12 at 15:21
add comment

1 Answer

How about executing an AJAX request on page load and reading the values from config file in the service call.

share|improve this answer
add comment

Your Answer


