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 を使用して日付を返すことができます。簡単なチュートリアルは次のとおりです

于 2012-08-21T16:19:55.877 に答える