jquery works on the client, with the rendered html. how the html is rendered doesn't matter (static, asp.net, php, ruby). so you won't find explicit examples about how to get jquery working with webforms.
what you may find is how to work with jquery with html rendered by webforms. typically the only issue with this is how to handle the clientId generated by webforms.
with jquery int the client(browser) environment there is no concept of a database either. you will need to load the dates either as part of rendering the page, or making an ajax call to the server to retrieve the dates.
The key is rememering that you can't refer to an ID attribute (because until 2010 asp loved to corrupt id's for its' own crazy purpose), you need to add a class (cssClass) to your asp:textbox and bind the class to the datapicker control.
At that point it is a simple matter to retrive the text property of the textbox.
The only thing i should add, is make sure you include the ui.css files and images, otherwise it won't look very good.
A few projects ago, i used datepickers to display 3 months at a time. It is MUCH easier to use than the ajax controls or even the datepicker for alot of customization.
Maybe i need to read more carefully.. I think what you want might not be possible (change dates based on an array of dates from a db.)..
I have done that with the classic calendar control,but i suspect that Jason is 100% correct. (I will dig a bit deeper to see if it might be doable, but...)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.