1

I am looking to run a select statement in my C# code behind pages to select dates from a MSSQL table so that I can highlight booked dates in my YUI calendar. I have done this manually by using the following JavaScript (this highlights September 1st):

YAHOO.example.calendar.cal1.addRenderer("9/1/2012",YAHOO.example.calendar.cal1.renderCellStyleHighlight1);

Is there a way to get the dates that I have selected from the database to then be 'echoed' into JavaScript like below? I know how to do this in PHP but not in ASP.NET!

Any help would be appreciated. Thanks

4

1 回答 1

0

您可以使用 AJAX 返回日期,这里有一个快速教程:http: //blogs.microsoft.co.il/blogs/gilf/archive/2008/10/04/asp-net-ajax-pagemethods.aspx

于 2012-08-21T16:19:55.877 回答